mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
plugins/nvim-lsp: Add a user option to set the cmd of each language server (#206)
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user