Skip to content

Commit

Permalink
Write Kate LSP settings file if customServers is not null (#358)
Browse files Browse the repository at this point in the history
Co-authored-by: blitter <blitter@blaupost.de>
  • Loading branch information
Asqiir and blitter authored Sep 8, 2024
1 parent 3620206 commit ab213b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/apps/kate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -399,16 +399,16 @@ 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).
Note that these are only the settings, the packages have to be installed separately.
'';
};

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

Expand Down

0 comments on commit ab213b4

Please sign in to comment.