From 9cf0880aa96e9e102d7012ddf5cfc9f4bd090863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=A9tan=20Lepage?= <33058747+GaetanLepage@users.noreply.github.com> Date: Thu, 23 Feb 2023 00:37:22 +0100 Subject: [PATCH] plugins/nvim-lsp: add an exraSettings option to each language server (#182) --- plugins/nvim-lsp/helpers.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/nvim-lsp/helpers.nix b/plugins/nvim-lsp/helpers.nix index bd0333ff..c09c45e4 100644 --- a/plugins/nvim-lsp/helpers.nix +++ b/plugins/nvim-lsp/helpers.nix @@ -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); }; } ];