mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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;
|
||||
};
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
12
tests/flake.lock
generated
12
tests/flake.lock
generated
|
@ -97,12 +97,12 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 0,
|
||||
"narHash": "sha256-51K3gjUQAgBuXJMUCxloBqJeRiB5nwix0kMSbffDxak=",
|
||||
"path": "/nix/store/y78h7ccdy3jdy4mwyw8dyg3prhwqx61f-source",
|
||||
"narHash": "sha256-NLfZri8QaYVDjLHfDAqP+DHyIRsb+bXn+2dJtoFo1LM=",
|
||||
"path": "/nix/store/j8vf0lmn4w9w18jva2dn9kfk2aw1niff-source",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/nix/store/y78h7ccdy3jdy4mwyw8dyg3prhwqx61f-source",
|
||||
"path": "/nix/store/j8vf0lmn4w9w18jva2dn9kfk2aw1niff-source",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
|
@ -116,12 +116,12 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 0,
|
||||
"narHash": "sha256-51K3gjUQAgBuXJMUCxloBqJeRiB5nwix0kMSbffDxak=",
|
||||
"path": "/nix/store/y78h7ccdy3jdy4mwyw8dyg3prhwqx61f-source",
|
||||
"narHash": "sha256-NLfZri8QaYVDjLHfDAqP+DHyIRsb+bXn+2dJtoFo1LM=",
|
||||
"path": "/nix/store/j8vf0lmn4w9w18jva2dn9kfk2aw1niff-source",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/nix/store/y78h7ccdy3jdy4mwyw8dyg3prhwqx61f-source",
|
||||
"path": "/nix/store/j8vf0lmn4w9w18jva2dn9kfk2aw1niff-source",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -52,6 +52,10 @@
|
|||
nixGrammars = false;
|
||||
};
|
||||
};
|
||||
elixir-ls = build {
|
||||
plugins.lsp.enable = true;
|
||||
plugins.lsp.servers.elixirls.enable = true;
|
||||
};
|
||||
|
||||
lsp-lines = build-stable {
|
||||
plugins.lsp-lines.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue