Skip to content

Commit

Permalink
fix(nvim): setup elixir-ls cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslawgrochowski committed Nov 6, 2024
1 parent 31eadd1 commit 6041225
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/nvim/plugins/lsp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ lspconfig.astro.setup {
}
lspconfig.elixirls.setup {
capabilities = capabilities,
cmd = { ELIXIR_LS_PATH },
}

require('fidget').setup {}
6 changes: 5 additions & 1 deletion modules/nvim/plugins/lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
'';
}

0 comments on commit 6041225

Please sign in to comment.