diff --git a/modules/moritz/programs/nvim/plugins/lsp.nix b/modules/moritz/programs/nvim/plugins/lsp.nix index 5a62ae1..1f3eb1a 100644 --- a/modules/moritz/programs/nvim/plugins/lsp.nix +++ b/modules/moritz/programs/nvim/plugins/lsp.nix @@ -10,11 +10,11 @@ elixir.setup { nextls = { - enable = true, + enable = vim.fn.exepath("nextls") ~= "", cmd = vim.fn.exepath("nextls"), }, elixirls = { - enable = true, + enable = vim.fn.exepath("elixir-ls") ~= "", cmd = vim.fn.exepath("elixir-ls"), settings = elixirls.settings { dialyzerEnabled = true,