diff options
| author | lassulus <lassulus@lassul.us> | 2019-05-29 09:07:03 +0200 |
|---|---|---|
| committer | lassulus <lassulus@lassul.us> | 2019-05-29 09:07:03 +0200 |
| commit | e702da676e9b474f10776e7c4b33dbc31dcb0190 (patch) | |
| tree | 165b3debb2ec67c29ce4ae1bb9325bb1dc5ff74f /tv/5pkgs/vim/vim.nix | |
| parent | 66707dcab7e799fa02c577d82b29a57fb2fee29f (diff) | |
| parent | e36216d31716a2d847e5ca94527a21628f65c8eb (diff) | |
Merge remote-tracking branch 'ni/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 0000000..216ab6a --- /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))} + ''; +})) |
