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

50 lines
1.2 KiB
Nix
Raw Normal View History

2022-12-09 00:31:56 +00:00
with import ./lib;
2019-05-21 19:55:28 +00:00
{ pkgs }:
2022-12-05 14:10:15 +00:00
pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
2019-05-21 19:55:28 +00:00
name = "hack";
in {
name = "vim-color-${name}-1.0.2";
destination = "/colors/${name}.vim";
text = /* vim */ ''
set background=dark
hi clear
if exists("syntax_on")
syntax clear
endif
let colors_name = ${toJSON name}
hi Normal ctermbg=235
hi Comment ctermfg=242
hi Constant ctermfg=255
hi Identifier ctermfg=253
hi Function ctermfg=253
hi Statement ctermfg=253
hi PreProc ctermfg=251
hi Type ctermfg=251
hi Delimiter ctermfg=251
hi Special ctermfg=255
hi Garbage ctermbg=088
hi TabStop ctermbg=016
hi Todo ctermfg=174 ctermbg=NONE
hi NixCode ctermfg=040
hi NixData ctermfg=046
hi NixQuote ctermfg=071
hi diffNewFile ctermfg=207
hi diffFile ctermfg=207
hi diffLine ctermfg=207
hi diffSubname ctermfg=207
hi diffAdded ctermfg=010
hi diffRemoved ctermfg=009
hi Search cterm=NONE ctermbg=216
2023-01-16 10:52:19 +00:00
hi TabLine cterm=underline guifg=#424242 guibg=#232323
hi TabLineFill cterm=underline guifg=#424242 guibg=#232323
2019-05-21 19:55:28 +00:00
'';
}))