diff options
| author | jeschli <jeschli@gmail.com> | 2019-06-25 22:43:02 +0200 |
|---|---|---|
| committer | jeschli <jeschli@gmail.com> | 2019-06-25 22:43:02 +0200 |
| commit | f11f904b90fe6cd729ef6e2de639fa8203404712 (patch) | |
| tree | 54b44d2e789327923e7e25657570a8526f4acc37 /tv/5pkgs/vim/vim.nix | |
| parent | 0a72cdce8a0d27f17df96692dba1731defc97d49 (diff) | |
| parent | acfa08271cfd8e92cd042366e58a4cb26bdaab00 (diff) | |
Merge branch 'master' of prism.r:stockholm
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))} + ''; +})) |
