plugins/nvim-lsp: Add a user option to set the cmd of each language server (#206)

This commit is contained in:
Gaétan Lepage 2023-02-27 11:45:49 +01:00 committed by GitHub
parent b9f32b3443
commit 55b302c268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
};
}