Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
Add cmd entry and change elixir install script
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusmuller committed Apr 22, 2021
1 parent 504ec28 commit 96932ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/lspinstall/servers/elixir.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
local config = require'lspconfig'.elixirls.document_config
require'lspconfig/configs'.elixirls = nil -- important, immediately unset the loaded config again
config.default_config.cmd = { "elixir-ls/language_server.sh" }

return vim.tbl_extend('error', config, {
install_script = [[
rm -rf elixir-ls
curl -fLO https://github.com/elixir-lsp/elixir-ls/releases/latest/download/elixir-ls.zip
unzip elixir-ls.zip
chmod +x language_server.sh
unzip elixir-ls.zip -d elixir-ls
chmod +x elixir-ls/language_server.sh
rm -f elixir-ls.zip
]],
})

0 comments on commit 96932ec

Please sign in to comment.