From 6125c37e2ab1c1eb38d9405178be15cdb48178c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 1 Aug 2025 20:27:20 +0200 Subject: [PATCH] feat(nvim): disable elixir lsp if not in PATH --- modules/moritz/programs/nvim/plugins/lsp.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,