aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/programs/kakoune/whitespace-highlighter.nix
blob: edeb6b52d729223c403b0deafb43d34787e4c100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"
    '';
  };
}