summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/vim/vim.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-05-21 21:56:25 +0200
committertv <tv@krebsco.de>2019-05-21 22:03:00 +0200
commit9b573a35f24b4d259f909fc191c8123a1aeec7b3 (patch)
tree848ed9f0610c790b7559246be6203ceef37b35dc /tv/5pkgs/vim/vim.nix
parentec45998cb5665ae005d366e87b2e04fb935906d4 (diff)
tv vim: move vim to overlay
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))}
+ '';
+}))