diff --git a/modules/nvim/plugins/lsp/config.lua b/modules/nvim/plugins/lsp/config.lua index 5a0f160..4e50d3a 100644 --- a/modules/nvim/plugins/lsp/config.lua +++ b/modules/nvim/plugins/lsp/config.lua @@ -224,6 +224,7 @@ lspconfig.astro.setup { } lspconfig.elixirls.setup { capabilities = capabilities, + cmd = { ELIXIR_LS_PATH }, } require('fidget').setup {} diff --git a/modules/nvim/plugins/lsp/default.nix b/modules/nvim/plugins/lsp/default.nix index 308e591..c08e211 100644 --- a/modules/nvim/plugins/lsp/default.nix +++ b/modules/nvim/plugins/lsp/default.nix @@ -29,8 +29,12 @@ shellcheck shfmt stylua + pkgs.unstable.elixir pkgs.unstable.elixir-ls ]; - config = builtins.readFile ./config.lua; + config = /* lua */'' + ELIXIR_LS_PATH = '${"${pkgs.unstable.elixir-ls}"}/bin/elixir-ls'; + ${builtins.readFile ./config.lua} + ''; }