blob: 3ce02e8f5afc3936f030a15e2e5cd2943ffe47f3 (
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
26
27
28
29
30
31
32
|
{ 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 = let
lineStart =
"^add-highlighter\\s\\+global\\/\\?\\s\\+show-whitespaces\\s\\+"
+ "\\(-\\w\\+\\s\\+.\\s\\+\\)*";
in ''
assertFileExists home-files/.config/kak/kakrc
assertFileRegex home-files/.config/kak/kakrc '${lineStart}-lf\s\+1\b'
assertFileRegex home-files/.config/kak/kakrc '${lineStart}-spc\s\+2\b'
assertFileRegex home-files/.config/kak/kakrc '${lineStart}-nbsp\s\+3\b'
assertFileRegex home-files/.config/kak/kakrc '${lineStart}-tab\s\+4\b'
assertFileRegex home-files/.config/kak/kakrc '${lineStart}-tabpad\s\+5\b'
'';
};
}
|