aboutsummaryrefslogtreecommitdiff
path: root/plugin/max-fix-colorschemes.vim
blob: 16245658532b9e0a8dd1b550b84884c306abf382 (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
47
48
49
50
51
52
"=======================================================================================================================
" COLOR SCHEME:
"=======================================================================================================================
function! ExtendColorTheme()
    highlight! Bold            cterm=bold                  gui=bold
    highlight! Italic          cterm=italic                gui=italic
    highlight! Underline       cterm=underline             gui=underline
    highlight! BoldUnderline   cterm=bold,underline        gui=bold,underline
    highlight! BoldItalic      cterm=bold,Italic           gui=Bold,Italic
    highlight! Todo            cterm=bold                  gui=bold            guibg=#ffffaa                                       guifg=#000000
    highlight! Error                                       guibg=NONE
    highlight! SpellBad        cterm=NONE                  gui=undercurl       guibg=NONE                                          guifg=red


    highlight! link            qfSeparator                 Normal              | " reserve one space
    highlight! link            qfLineNr                    Normal              | " informational line numbers should look different

    highlight! link            SpecialKey                  NonText             | " makes tab stop (see listchars) less disturbing
    highlight! link            EndOfBuffer                 Ignore
    highlight! link            WildMenu                    Search
    highlight! link            Convention                  Error
    highlight! link            VertSplit                   NonText

    highlight! link            VertSplit                   LineNr
    highlight! link            Folded                      LineNr
    highlight! link            SignColumn                  LineNr
    highlight! link            FoldColumn                  LineNr

    highlight! link            PmenuSbar                   Pmenu
    highlight! PmenuThumb      cterm=inverse
    highlight! MoreMsg         cterm=inverse

endfunction
autocmd ColorScheme * call ExtendColorTheme()


if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest"))
  let g:base16_shell_path  =  "~/.config/base16-shell/scripts"
  let base16colorspace     =  256
  set background=dark
  source ~/.vimrc_background
else
  let g:PaperColor_Theme_Options = {
        \   'theme': {
        \     'default': {
        \       'transparent_background': 0
        \     }
        \   }
        \ }
  set background=light
  colorscheme PaperColor
endif
..