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

17 lines
439 B
Nix
Raw Normal View History

2022-12-09 00:31:56 +00:00
with import ./lib;
2019-05-21 19:56:25 +00:00
{ 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))}
'';
}))