mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 18:54:30 +02:00
plugins/nvim-lsp: add an exraSettings option to each language server (#182)
This commit is contained in:
parent
ff4292f2be
commit
9cf0880aa9
1 changed files with 8 additions and 1 deletions
|
@ -40,6 +40,13 @@
|
|||
{
|
||||
enable = mkEnableOption description;
|
||||
settings = settingsOptions;
|
||||
extraSettings = mkOption {
|
||||
default = {};
|
||||
type = types.attrs;
|
||||
description = ''
|
||||
Extra settings for the ${name} language server.
|
||||
'';
|
||||
};
|
||||
}
|
||||
// packageOption;
|
||||
};
|
||||
|
@ -56,7 +63,7 @@
|
|||
name = serverName;
|
||||
extraOptions = {
|
||||
cmd = cmd cfg;
|
||||
settings = settings cfg.settings;
|
||||
settings = settings (cfg.settings // cfg.extraSettings);
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue