diff options
Diffstat (limited to 'infra/libkookie/home-manager/tests/modules/programs/kakoune/whitespace-highlighter.nix')
-rw-r--r-- | infra/libkookie/home-manager/tests/modules/programs/kakoune/whitespace-highlighter.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/infra/libkookie/home-manager/tests/modules/programs/kakoune/whitespace-highlighter.nix b/infra/libkookie/home-manager/tests/modules/programs/kakoune/whitespace-highlighter.nix new file mode 100644 index 000000000000..514c26a118b2 --- /dev/null +++ b/infra/libkookie/home-manager/tests/modules/programs/kakoune/whitespace-highlighter.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + config = { + programs.kakoune = { + enable = true; + config.showWhitespace = { + enable = true; + lineFeed = "1"; + space = "2"; + nonBreakingSpace = "3"; + tab = "4"; + tabStop = "5"; + }; + }; + + nmt.script = '' + assertFileExists home-files/.config/kak/kakrc + assertFileContains home-files/.config/kak/kakrc \ + "add-highlighter global/ show-whitespaces -tab '4' -tabpad '5' -spc '2' -nbsp '3' -lf '1'" + ''; + }; +} |