From 6725b33eddfa6295394528943cc5f835e270ce4c Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Wed, 4 Dec 2024 11:15:03 +0200 Subject: [PATCH] fixing elixir lsp --- config/nvim/lua/lsp.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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' - } -}