summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-06-09 13:22:47 +0200
committertv <tv@krebsco.de>2016-06-10 16:04:55 +0200
commit4e7a17e4c4cdda6eab2a0991b94b4c72ec809ed8 (patch)
treeb2613573db4ff1db4ed8515bc0b771283e51d526 /tv/2configs
parent1e083355662ea50f3ee4c643403e2e68740df6f0 (diff)
tv vim-syntax-vim: init at 1.0.0
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/vim.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix
index e6b9bf2..0eb67fc 100644
--- a/tv/2configs/vim.nix
+++ b/tv/2configs/vim.nix
@@ -44,6 +44,19 @@ let
hi TrailingSpace ctermbg=88
'';
})))
+ ((rtp: rtp // { inherit rtp; }) (pkgs.writeTextFile (let
+ name = "vim";
+ in {
+ name = "vim-syntax-${name}-1.0.0";
+ destination = "/syntax/${name}.vim";
+ text = /* vim */ ''
+ ${concatMapStringsSep "\n" (s: /* vim */ ''
+ syn keyword vimColor${s} ${s}
+ \ containedin=ALLBUT,vimComment,vimLineComment
+ hi vimColor${s} ctermfg=${s}
+ '') (map (i: lpad 3 "0" (toString i)) (range 0 255))}
+ '';
+ })))
];
dirs = {