stockholm/tv/5pkgs/vim/vim.nix

17 lines
449 B
Nix
Raw Normal View History

2019-05-21 19:56:25 +00:00
with import <stockholm/lib>;
{ pkgs }:
2022-12-05 14:10:15 +00:00
pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
2019-05-21 19:56:25 +00:00
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))}
'';
}))