mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/nvim-lsp: Add a user option to set the cmd of each language server (#206)
This commit is contained in:
parent
b9f32b3443
commit
55b302c268
1 changed files with 5 additions and 1 deletions
|
@ -39,6 +39,10 @@
|
|||
plugins.lsp.servers.${name} =
|
||||
{
|
||||
enable = mkEnableOption description;
|
||||
cmd = mkOption {
|
||||
type = with types; nullOr (listOf str);
|
||||
default = cmd cfg;
|
||||
};
|
||||
settings = settingsOptions;
|
||||
extraSettings = mkOption {
|
||||
default = {};
|
||||
|
@ -62,7 +66,7 @@
|
|||
{
|
||||
name = serverName;
|
||||
extraOptions = {
|
||||
cmd = cmd cfg;
|
||||
cmd = cfg.cmd;
|
||||
settings = settings (cfg.settings // cfg.extraSettings);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue