From 7bb4a5dffb0cfc1903f8d944a856ceccd28b4caf Mon Sep 17 00:00:00 2001 From: Giovanni d'Amelio Date: Tue, 8 Oct 2024 10:13:20 -0700 Subject: [PATCH] Update config to use NextLS for Elixir --- src/packages/_neovim_lua/lsp.lua | 3 +++ src/packages/_neovim_lua/plugins.lua | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/packages/_neovim_lua/lsp.lua b/src/packages/_neovim_lua/lsp.lua index 52034a7..2d3b11d 100644 --- a/src/packages/_neovim_lua/lsp.lua +++ b/src/packages/_neovim_lua/lsp.lua @@ -158,6 +158,9 @@ lspconfig.emmet_ls.setup({ -- lspconfig.elixirls.setup({ -- cmd = { os.getenv('ELIXIRLS_CMD') }, -- }) +-- lspconfig.nextls.setup({ +-- cmd = { os.getenv('NEXTLS_CMD'), '--stdio' }, +-- }) lspconfig.rust_analyzer.setup({ settings = { ['rust-analyzer'] = { diff --git a/src/packages/_neovim_lua/plugins.lua b/src/packages/_neovim_lua/plugins.lua index fad0114..10e6899 100644 --- a/src/packages/_neovim_lua/plugins.lua +++ b/src/packages/_neovim_lua/plugins.lua @@ -106,7 +106,17 @@ require('neotest').setup({ -- Elixir Tools require('elixir').setup({ - nextls = { enable = true }, + nextls = { + enable = true, + cmd = os.getenv('NEXTLS_CMD'), + init_options = { + experimental = { + completions = { + enable = true, + }, + }, + }, + }, elixirls = { enable = false }, projectionist = { enable = true }, })