From ab213b4b6a9abf46516fbd6eecdd2c936fe98155 Mon Sep 17 00:00:00 2001 From: blitter Date: Sun, 8 Sep 2024 22:21:48 +0200 Subject: [PATCH] Write Kate LSP settings file if customServers is not null (#358) Co-authored-by: blitter --- modules/apps/kate/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/apps/kate/default.nix b/modules/apps/kate/default.nix index 75a0903c..d4faf2cf 100644 --- a/modules/apps/kate/default.nix +++ b/modules/apps/kate/default.nix @@ -399,8 +399,8 @@ in # ================================== # LSP Servers options.programs.kate.lsp.customServers = lib.mkOption { - default = { }; - type = lib.types.attrs; + default = null; + type = lib.types.nullOr lib.types.attrs; description = '' Add more lsp server settings here. Check out the format on the [KDE page](https://docs.kde.org/stable5/en/kate/kate/kate-application-plugin-lspclient.html). @@ -408,7 +408,7 @@ in ''; }; - config.xdg.configFile."kate/lspclient/settings.json" = { + config.xdg.configFile."kate/lspclient/settings.json" = lib.mkIf (cfg.lsp.customServers != null) { text = builtins.toJSON { servers = cfg.lsp.customServers; }; };