diff options
Diffstat (limited to 'colors/base16-synth-midnight-dark.vim')
-rw-r--r-- | colors/base16-synth-midnight-dark.vim | 171 |
1 files changed, 102 insertions, 69 deletions
diff --git a/colors/base16-synth-midnight-dark.vim b/colors/base16-synth-midnight-dark.vim index e8ccfb4..4389e49 100644 --- a/colors/base16-synth-midnight-dark.vim +++ b/colors/base16-synth-midnight-dark.vim @@ -2,7 +2,7 @@ " base16-vim (https://github.com/chriskempson/base16-vim) " by Chris Kempson (http://chriskempson.com) -" Synth Midnight Dark scheme by Michaël Ball (http://github.com/michael-ball/) +" Synth Midnight Terminal Dark scheme by Michaël Ball (http://github.com/michael-ball/) " This enables the coresponding base16-shell script to run so that " :colorscheme works in terminals supported by base16-shell scripts @@ -15,38 +15,38 @@ if !has("gui_running") endif " GUI color definitions -let s:gui00 = "040404" -let g:base16_gui00 = "040404" -let s:gui01 = "141414" -let g:base16_gui01 = "141414" -let s:gui02 = "242424" -let g:base16_gui02 = "242424" -let s:gui03 = "61507A" -let g:base16_gui03 = "61507A" -let s:gui04 = "BFBBBF" -let g:base16_gui04 = "BFBBBF" -let s:gui05 = "DFDBDF" -let g:base16_gui05 = "DFDBDF" -let s:gui06 = "EFEBEF" -let g:base16_gui06 = "EFEBEF" -let s:gui07 = "FFFBFF" -let g:base16_gui07 = "FFFBFF" -let s:gui08 = "B53B50" -let g:base16_gui08 = "B53B50" -let s:gui09 = "E4600E" -let g:base16_gui09 = "E4600E" -let s:gui0A = "DAE84D" -let g:base16_gui0A = "DAE84D" -let s:gui0B = "06EA61" -let g:base16_gui0B = "06EA61" -let s:gui0C = "7CEDE9" -let g:base16_gui0C = "7CEDE9" -let s:gui0D = "03AEFF" -let g:base16_gui0D = "03AEFF" -let s:gui0E = "EA5CE2" -let g:base16_gui0E = "EA5CE2" -let s:gui0F = "9D4D0E" -let g:base16_gui0F = "9D4D0E" +let s:gui00 = "050608" +let g:base16_gui00 = "050608" +let s:gui01 = "1a1b1c" +let g:base16_gui01 = "1a1b1c" +let s:gui02 = "28292a" +let g:base16_gui02 = "28292a" +let s:gui03 = "474849" +let g:base16_gui03 = "474849" +let s:gui04 = "a3a5a6" +let g:base16_gui04 = "a3a5a6" +let s:gui05 = "c1c3c4" +let g:base16_gui05 = "c1c3c4" +let s:gui06 = "cfd1d2" +let g:base16_gui06 = "cfd1d2" +let s:gui07 = "dddfe0" +let g:base16_gui07 = "dddfe0" +let s:gui08 = "b53b50" +let g:base16_gui08 = "b53b50" +let s:gui09 = "ea770d" +let g:base16_gui09 = "ea770d" +let s:gui0A = "c9d364" +let g:base16_gui0A = "c9d364" +let s:gui0B = "06ea61" +let g:base16_gui0B = "06ea61" +let s:gui0C = "42fff9" +let g:base16_gui0C = "42fff9" +let s:gui0D = "03aeff" +let g:base16_gui0D = "03aeff" +let s:gui0E = "ea5ce2" +let g:base16_gui0E = "ea5ce2" +let s:gui0F = "cd6320" +let g:base16_gui0F = "cd6320" " Terminal color definitions let s:cterm00 = "00" @@ -99,22 +99,22 @@ endif " Neovim terminal colours if has("nvim") - let g:terminal_color_0 = "#040404" - let g:terminal_color_1 = "#B53B50" - let g:terminal_color_2 = "#06EA61" - let g:terminal_color_3 = "#DAE84D" - let g:terminal_color_4 = "#03AEFF" - let g:terminal_color_5 = "#EA5CE2" - let g:terminal_color_6 = "#7CEDE9" - let g:terminal_color_7 = "#DFDBDF" - let g:terminal_color_8 = "#61507A" - let g:terminal_color_9 = "#B53B50" - let g:terminal_color_10 = "#06EA61" - let g:terminal_color_11 = "#DAE84D" - let g:terminal_color_12 = "#03AEFF" - let g:terminal_color_13 = "#EA5CE2" - let g:terminal_color_14 = "#7CEDE9" - let g:terminal_color_15 = "#FFFBFF" + let g:terminal_color_0 = "#050608" + let g:terminal_color_1 = "#b53b50" + let g:terminal_color_2 = "#06ea61" + let g:terminal_color_3 = "#c9d364" + let g:terminal_color_4 = "#03aeff" + let g:terminal_color_5 = "#ea5ce2" + let g:terminal_color_6 = "#42fff9" + let g:terminal_color_7 = "#c1c3c4" + let g:terminal_color_8 = "#474849" + let g:terminal_color_9 = "#b53b50" + let g:terminal_color_10 = "#06ea61" + let g:terminal_color_11 = "#c9d364" + let g:terminal_color_12 = "#03aeff" + let g:terminal_color_13 = "#ea5ce2" + let g:terminal_color_14 = "#42fff9" + let g:terminal_color_15 = "#dddfe0" let g:terminal_color_background = g:terminal_color_0 let g:terminal_color_foreground = g:terminal_color_5 if &background == "light" @@ -123,22 +123,22 @@ if has("nvim") endif elseif has("terminal") let g:terminal_ansi_colors = [ - \ "#040404", - \ "#B53B50", - \ "#06EA61", - \ "#DAE84D", - \ "#03AEFF", - \ "#EA5CE2", - \ "#7CEDE9", - \ "#DFDBDF", - \ "#61507A", - \ "#B53B50", - \ "#06EA61", - \ "#DAE84D", - \ "#03AEFF", - \ "#EA5CE2", - \ "#7CEDE9", - \ "#FFFBFF", + \ "#050608", + \ "#b53b50", + \ "#06ea61", + \ "#c9d364", + \ "#03aeff", + \ "#ea5ce2", + \ "#42fff9", + \ "#c1c3c4", + \ "#474849", + \ "#b53b50", + \ "#06ea61", + \ "#c9d364", + \ "#03aeff", + \ "#ea5ce2", + \ "#42fff9", + \ "#dddfe0", \ ] endif @@ -153,11 +153,22 @@ function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...) let l:attr = get(a:, 1, "") let l:guisp = get(a:, 2, "") + " See :help highlight-guifg + let l:gui_special_names = ["NONE", "bg", "background", "fg", "foreground"] + if a:guifg != "" - exec "hi " . a:group . " guifg=#" . a:guifg + if index(l:gui_special_names, a:guifg) >= 0 + exec "hi " . a:group . " guifg=" . a:guifg + else + exec "hi " . a:group . " guifg=#" . a:guifg + endif endif if a:guibg != "" - exec "hi " . a:group . " guibg=#" . a:guibg + if index(l:gui_special_names, a:guibg) >= 0 + exec "hi " . a:group . " guibg=" . a:guibg + else + exec "hi " . a:group . " guibg=#" . a:guibg + endif endif if a:ctermfg != "" exec "hi " . a:group . " ctermfg=" . a:ctermfg @@ -169,7 +180,11 @@ function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...) exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr endif if l:guisp != "" - exec "hi " . a:group . " guisp=#" . l:guisp + if index(l:gui_special_names, l:guisp) >= 0 + exec "hi " . a:group . " guisp=" . l:guisp + else + exec "hi " . a:group . " guisp=#" . l:guisp + endif endif endfunction @@ -216,7 +231,7 @@ call <sid>hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none", "" call <sid>hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "") call <sid>hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "") call <sid>hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "") -call <sid>hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "") +call <sid>hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "bold", "") call <sid>hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "") call <sid>hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "") call <sid>hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "") @@ -402,6 +417,24 @@ call <sid>hi("StartifySelect", s:gui0C, "", s:cterm0C, "", "", "") call <sid>hi("StartifySlash", s:gui03, "", s:cterm03, "", "", "") call <sid>hi("StartifySpecial", s:gui03, "", s:cterm03, "", "", "") +" Neovim Treesitter highlighting +if has("nvim") + call <sid>hi("TSFunction", s:gui0D, "", s:cterm0D, "", "", "") + call <sid>hi("TSKeywordFunction", s:gui0E, "", s:cterm0E, "", "", "") + call <sid>hi("TSMethod", s:gui0D, "", s:cterm0D, "", "", "") + call <sid>hi("TSProperty", s:gui0A, "", s:cterm0A, "", "", "") + call <sid>hi("TSPunctBracket", s:gui0C, "", s:cterm0C, "", "", "") + call <sid>hi("TSType", s:gui08, "", s:cterm08, "", "none", "") +endif + +" LSP highlighting +if has("nvim") + call <sid>hi("LspDiagnosticsDefaultError", s:gui08, "", s:cterm08, "", "", "") + call <sid>hi("LspDiagnosticsDefaultWarning", s:gui09, "", s:cterm09, "", "", "") + call <sid>hi("LspDiagnosticsDefaultInformation", s:gui05, "", s:cterm05, "", "", "") + call <sid>hi("LspDiagnosticsDefaultHint", s:gui03, "", s:cterm03, "", "", "") +endif + " Java highlighting call <sid>hi("javaOperator", s:gui0D, "", s:cterm0D, "", "", "") |