plugins/nvim-lsp: Correctly take into account extraSettings (#275)

(Resolves #273)
This commit is contained in:
traxys 2023-03-18 23:17:59 +01:00 committed by GitHub
parent bd4384a2e5
commit 09a2e9afb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@
package ? pkgs.${name},
extraPackages ? {},
cmd ? (cfg: null),
settings ? (cfg: {}),
settings ? (cfg: cfg),
settingsOptions ? {},
...
}:
@ -82,7 +82,7 @@
name = serverName;
extraOptions = {
inherit (cfg) cmd filetypes autostart;
settings = settings (cfg.settings // cfg.extraSettings);
settings = (settings cfg.settings) // cfg.extraSettings;
};
}
];