mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
lsp: fix elixir lsp
This commit is contained in:
parent
2db1c36c30
commit
c7b561b40c
4 changed files with 19 additions and 8 deletions
|
@ -20,7 +20,8 @@ let
|
|||
{
|
||||
name = "elixirls";
|
||||
description = "Enable elixirls";
|
||||
packages = [ pkgs.elixir_ls ];
|
||||
packages = [ ];
|
||||
cmd = "${pkgs.elixir_ls}/bin/elixir-ls";
|
||||
}
|
||||
{
|
||||
name = "gdscript";
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
, description ? "Enable ${name}."
|
||||
, serverName ? name
|
||||
, packages ? [ pkgs.${name} ]
|
||||
, cmd ? null
|
||||
, ...
|
||||
}:
|
||||
# returns a module
|
||||
|
@ -24,7 +25,12 @@
|
|||
config = mkIf cfg.enable {
|
||||
extraPackages = packages;
|
||||
|
||||
plugins.lsp.enabledServers = [ serverName ];
|
||||
plugins.lsp.enabledServers = [{
|
||||
name = serverName;
|
||||
extraOptions = {
|
||||
inherit cmd;
|
||||
};
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue