diff --git a/config/nvim/lua/lsp.lua b/config/nvim/lua/lsp.lua index a71730a..b262f39 100644 --- a/config/nvim/lua/lsp.lua +++ b/config/nvim/lua/lsp.lua @@ -1,16 +1,11 @@ -- Elixir shenanigans local lspdir = '~/.local/share/lsp-servers' -local capabilities = require('cmp_nvim_lsp').default_capabilities() +local capabilities = vim.lsp.protocol.make_client_capabilities() +capabilities = require('cmp_nvim_lsp').default_capabilities() + require'lspconfig'.elixirls.setup { -capabilities = capabilities, - capabilities = { lspdir .. '/elixir-ls/language_server.sh' } + cmd = { vim.fn.expand(lspdir .. '/elixir-ls/language_server.sh') }, + capabilities = capabilities, } -local elixir = require('elixir') -local elixirls = require('elixir.elixirls') -elixir.setup { - elixirls = { - cmd = lspdir .. '/elixir-ls/language_server.sh' - } -}