mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-06 16:57:03 +00:00
Instead of using several regex assertions, just state precisely what we are producing. While the regex was technically more flexible, since it would ignore differences in whitespace, it was also harder to read/edit.
25 lines
524 B
Nix
25 lines
524 B
Nix
{ 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"
|
|
'';
|
|
};
|
|
}
|