diff options
author | makefu <github@syntax-fehler.de> | 2019-06-14 18:41:27 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-06-14 18:41:27 +0200 |
commit | 276ad5f9d54a30c6817d00799af49199a5ef9e4c (patch) | |
tree | d441e34c262f08eddf9d84c01508e698468fbbfb /tv/5pkgs/vim/vim.nix | |
parent | 592d157eba8f1b5ba35f1fca64c2905897468f83 (diff) | |
parent | 4e7af580d81f02f6d07d38917f124f4b99483603 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'tv/5pkgs/vim/vim.nix')
-rw-r--r-- | tv/5pkgs/vim/vim.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tv/5pkgs/vim/vim.nix b/tv/5pkgs/vim/vim.nix new file mode 100644 index 000000000..216ab6abb --- /dev/null +++ b/tv/5pkgs/vim/vim.nix @@ -0,0 +1,16 @@ +with import <stockholm/lib>; +{ pkgs }: + +(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))} + ''; +})) |