summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/vim/hack.nix
blob: 0e949688d85c6ea4a2725d0c74953fd19c90f08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
with import <stockholm/lib>;
{ pkgs }:

pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
  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
  '';
}))