diff options
Diffstat (limited to 'lua/nvim-lsp-installer/servers/elixirls/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/elixirls/init.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/servers/elixirls/init.lua b/lua/nvim-lsp-installer/servers/elixirls/init.lua index 181b2b49..e0f638ea 100644 --- a/lua/nvim-lsp-installer/servers/elixirls/init.lua +++ b/lua/nvim-lsp-installer/servers/elixirls/init.lua @@ -2,6 +2,7 @@ local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" local std = require "nvim-lsp-installer.installers.std" local context = require "nvim-lsp-installer.installers.context" +local platform = require "nvim-lsp-installer.platform" return function(name, root_dir) return server.Server:new { @@ -17,7 +18,13 @@ return function(name, root_dir) std.chmod("+x", { "elixir-ls/language_server.sh" }), }, default_options = { - cmd = { path.concat { root_dir, "elixir-ls", "language_server.sh" } }, + cmd = { + path.concat { + root_dir, + "elixir-ls", + platform.is_win and "language_server.bat" or "language_server.sh", + }, + }, }, } end |
