aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/elixirls/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/elixirls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/elixirls/init.lua29
1 files changed, 16 insertions, 13 deletions
diff --git a/lua/nvim-lsp-installer/servers/elixirls/init.lua b/lua/nvim-lsp-installer/servers/elixirls/init.lua
index cc98f5c6..98dc7a7a 100644
--- a/lua/nvim-lsp-installer/servers/elixirls/init.lua
+++ b/lua/nvim-lsp-installer/servers/elixirls/init.lua
@@ -2,16 +2,19 @@ local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
local std = require "nvim-lsp-installer.installers.std"
-local root_dir = server.get_server_root_path "elixir"
-
-return server.Server:new {
- name = "elixirls",
- root_dir = root_dir,
- installer = {
- std.unzip_remote("https://github.com/elixir-lsp/elixir-ls/releases/download/v0.8.1/elixir-ls.zip", "elixir-ls"),
- std.chmod("+x", { "elixir-ls/language_server.sh" }),
- },
- default_options = {
- cmd = { path.concat { root_dir, "elixir-ls", "language_server.sh" } },
- },
-}
+return function(name, root_dir)
+ return server.Server:new {
+ name = name,
+ root_dir = root_dir,
+ installer = {
+ std.unzip_remote(
+ "https://github.com/elixir-lsp/elixir-ls/releases/download/v0.8.1/elixir-ls.zip",
+ "elixir-ls"
+ ),
+ std.chmod("+x", { "elixir-ls/language_server.sh" }),
+ },
+ default_options = {
+ cmd = { path.concat { root_dir, "elixir-ls", "language_server.sh" } },
+ },
+ }
+end