summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/vim/vim.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-05-29 09:07:03 +0200
committerlassulus <lassulus@lassul.us>2019-05-29 09:07:03 +0200
commit680d5b4cff45fa3de1adb50af576f796ae3762fa (patch)
tree647c746bb175c1613c3147a1e5985317c361e786 /tv/5pkgs/vim/vim.nix
parent08ddffd7812f9ec42f9946dd2c4f8cc4eb7b656c (diff)
parent06f8c8986b01bd805191fa452c09369cdafb0777 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/5pkgs/vim/vim.nix')
-rw-r--r--tv/5pkgs/vim/vim.nix16
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))}
+ '';
+}))