mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 02:08:40 +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} =
|
plugins.lsp.servers.${name} =
|
||||||
{
|
{
|
||||||
enable = mkEnableOption description;
|
enable = mkEnableOption description;
|
||||||
|
cmd = mkOption {
|
||||||
|
type = with types; nullOr (listOf str);
|
||||||
|
default = cmd cfg;
|
||||||
|
};
|
||||||
settings = settingsOptions;
|
settings = settingsOptions;
|
||||||
extraSettings = mkOption {
|
extraSettings = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
@ -62,7 +66,7 @@
|
||||||
{
|
{
|
||||||
name = serverName;
|
name = serverName;
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
cmd = cmd cfg;
|
cmd = cfg.cmd;
|
||||||
settings = settings (cfg.settings // cfg.extraSettings);
|
settings = settings (cfg.settings // cfg.extraSettings);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue