plugins/nvim-lsp: add an exraSettings option to each language server (#182)

This commit is contained in:
Gaétan Lepage 2023-02-23 00:37:22 +01:00 committed by GitHub
parent ff4292f2be
commit 9cf0880aa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,13 @@
{ {
enable = mkEnableOption description; enable = mkEnableOption description;
settings = settingsOptions; settings = settingsOptions;
extraSettings = mkOption {
default = {};
type = types.attrs;
description = ''
Extra settings for the ${name} language server.
'';
};
} }
// packageOption; // packageOption;
}; };
@ -56,7 +63,7 @@
name = serverName; name = serverName;
extraOptions = { extraOptions = {
cmd = cmd cfg; cmd = cmd cfg;
settings = settings cfg.settings; settings = settings (cfg.settings // cfg.extraSettings);
}; };
} }
]; ];