commit 006c0c09ccfe2a8cef923113c020c58d44fec4ba
parent 57c48eb7b2ae0053260963fb72b42d31bc9fcaf6
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Mon, 13 Dec 2021 19:31:15 +0100

Update onedark colorscheme to commit e86ce93

Full hash: e86ce939d85576fb7ce6c1c45fd49c8a570c24cc
Repo URL: https://github.com/joshdick/onedark.vim

Diffstat:
M.config/nvim/autoload/onedark.vim | 19++++++++++---------
M.config/nvim/colors/onedark.vim | 104++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------
2 files changed, 87 insertions(+), 36 deletions(-)

diff --git a/.config/nvim/autoload/onedark.vim b/.config/nvim/autoload/onedark.vim @@ -11,16 +11,17 @@ let s:colors = { \ "blue": get(s:overrides, "blue", { "gui": "#61AFEF", "cterm": "39", "cterm16": "4" }), \ "purple": get(s:overrides, "purple", { "gui": "#C678DD", "cterm": "170", "cterm16": "5" }), \ "cyan": get(s:overrides, "cyan", { "gui": "#56B6C2", "cterm": "38", "cterm16": "6" }), - \ "white": get(s:overrides, "white", { "gui": "#ABB2BF", "cterm": "145", "cterm16": "7" }), + \ "white": get(s:overrides, "white", { "gui": "#ABB2BF", "cterm": "145", "cterm16": "15" }), \ "black": get(s:overrides, "black", { "gui": "#282C34", "cterm": "235", "cterm16": "0" }), - \ "visual_black": get(s:overrides, "visual_black", { "gui": "NONE", "cterm": "NONE", "cterm16": "0" }), - \ "comment_grey": get(s:overrides, "comment_grey", { "gui": "#5C6370", "cterm": "59", "cterm16": "15" }), - \ "gutter_fg_grey": get(s:overrides, "gutter_fg_grey", { "gui": "#4B5263", "cterm": "238", "cterm16": "15" }), - \ "cursor_grey": get(s:overrides, "cursor_grey", { "gui": "#2C323C", "cterm": "236", "cterm16": "8" }), - \ "visual_grey": get(s:overrides, "visual_grey", { "gui": "#3E4452", "cterm": "237", "cterm16": "15" }), - \ "menu_grey": get(s:overrides, "menu_grey", { "gui": "#3E4452", "cterm": "237", "cterm16": "8" }), - \ "special_grey": get(s:overrides, "special_grey", { "gui": "#3B4048", "cterm": "238", "cterm16": "15" }), - \ "vertsplit": get(s:overrides, "vertsplit", { "gui": "#181A1F", "cterm": "59", "cterm16": "15" }), + \ "foreground": get(s:overrides, "foreground", { "gui": "#ABB2BF", "cterm": "145", "cterm16": "NONE" }), + \ "background": get(s:overrides, "background", { "gui": "#282C34", "cterm": "235", "cterm16": "NONE" }), + \ "comment_grey": get(s:overrides, "comment_grey", { "gui": "#5C6370", "cterm": "59", "cterm16": "7" }), + \ "gutter_fg_grey": get(s:overrides, "gutter_fg_grey", { "gui": "#4B5263", "cterm": "238", "cterm16": "8" }), + \ "cursor_grey": get(s:overrides, "cursor_grey", { "gui": "#2C323C", "cterm": "236", "cterm16": "0" }), + \ "visual_grey": get(s:overrides, "visual_grey", { "gui": "#3E4452", "cterm": "237", "cterm16": "8" }), + \ "menu_grey": get(s:overrides, "menu_grey", { "gui": "#3E4452", "cterm": "237", "cterm16": "7" }), + \ "special_grey": get(s:overrides, "special_grey", { "gui": "#3B4048", "cterm": "238", "cterm16": "7" }), + \ "vertsplit": get(s:overrides, "vertsplit", { "gui": "#3E4452", "cterm": "59", "cterm16": "7" }), \} function! onedark#GetColors() diff --git a/.config/nvim/colors/onedark.vim b/.config/nvim/colors/onedark.vim @@ -5,7 +5,10 @@ " License: The MIT License (MIT) " Based On: https://github.com/MaxSt/FlatColor/ -" A companion [vim-airline](https://github.com/bling/vim-airline) theme is available at: https://github.com/joshdick/airline-onedark.vim +" Companion statusline plugin and terminal themes are included with onedark.vim: +" * https://github.com/joshdick/onedark.vim#lightlinevim-colorscheme +" * https://github.com/joshdick/onedark.vim#vim-airline-theme +" * https://github.com/joshdick/onedark.vim/tree/main/term " Color Reference {{{ @@ -56,7 +59,7 @@ let g:colors_name="onedark" " Set to "256" for 256-color terminals, or " set to "16" to use your terminal emulator's native colors " (a 16-color palette for this color scheme is available; see -" < https://github.com/joshdick/onedark.vim/blob/master/README.md > +" < https://github.com/joshdick/onedark.vim/blob/main/README.md > " for more information.) if !exists("g:onedark_termcolors") let g:onedark_termcolors = 256 @@ -75,7 +78,7 @@ function! s:h(group, style, ...) let s:highlight = s:group_colors[a:group] for style_type in ["fg", "bg", "sp"] if (has_key(a:style, style_type)) - let l:default_style = (has_key(s:highlight, style_type) ? s:highlight[style_type] : { "cterm16": "NONE", "cterm": "NONE", "gui": "NONE" }) + let l:default_style = (has_key(s:highlight, style_type) ? copy(s:highlight[style_type]) : { "cterm16": "NONE", "cterm": "NONE", "gui": "NONE" }) let s:highlight[style_type] = extend(l:default_style, a:style[style_type]) endif endfor @@ -142,7 +145,8 @@ let s:purple = s:colors.purple let s:cyan = s:colors.cyan let s:white = s:colors.white let s:black = s:colors.black -let s:visual_black = s:colors.visual_black " Black out selected text in 16-color visual mode +let s:foreground = s:colors.foreground +let s:background = s:colors.background let s:comment_grey = s:colors.comment_grey let s:gutter_fg_grey = s:colors.gutter_fg_grey let s:cursor_grey = s:colors.cursor_grey @@ -157,9 +161,9 @@ let s:vertsplit = s:colors.vertsplit let g:terminal_ansi_colors = [ \ s:black.gui, s:red.gui, s:green.gui, s:yellow.gui, - \ s:blue.gui, s:purple.gui, s:cyan.gui, s:white.gui, - \ s:visual_grey.gui, s:dark_red.gui, s:green.gui, s:dark_yellow.gui, - \ s:blue.gui, s:purple.gui, s:cyan.gui, s:comment_grey.gui + \ s:blue.gui, s:purple.gui, s:cyan.gui, s:comment_grey.gui, + \ s:visual_grey.gui, s:red.gui, s:green.gui, s:yellow.gui, + \ s:blue.gui, s:purple.gui, s:cyan.gui, s:white.gui \] " }}} @@ -192,12 +196,12 @@ call s:h("StorageClass", { "fg": s:yellow }) " static, register, volatile, etc. call s:h("Structure", { "fg": s:yellow }) " struct, union, enum, etc. call s:h("Typedef", { "fg": s:yellow }) " A typedef call s:h("Special", { "fg": s:blue }) " any special symbol -call s:h("SpecialChar", {}) " special character in a constant +call s:h("SpecialChar", { "fg": s:dark_yellow }) " special character in a constant call s:h("Tag", {}) " you can use CTRL-] on this call s:h("Delimiter", {}) " character that needs attention call s:h("SpecialComment", { "fg": s:comment_grey }) " special things inside a comment call s:h("Debug", {}) " debugging statements -call s:h("Underlined", { "fg": s:blue, "gui": "underline", "cterm": "underline" }) " text that stands out, HTML links +call s:h("Underlined", { "gui": "underline", "cterm": "underline" }) " text that stands out, HTML links call s:h("Ignore", {}) " left blank, hidden call s:h("Error", { "fg": s:red }) " any erroneous construct call s:h("Todo", { "fg": s:purple }) " anything that needs extra attention; mostly the keywords TODO FIXME and XXX @@ -237,10 +241,10 @@ call s:h("MatchParen", { "fg": s:blue, "gui": "underline", "cterm": "underline" call s:h("ModeMsg", {}) " 'showmode' message (e.g., "-- INSERT --") call s:h("MoreMsg", {}) " more-prompt call s:h("NonText", { "fg": s:special_grey }) " '~' and '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). -call s:h("Normal", { "fg": s:white, "bg": s:black }) " normal text -call s:h("Pmenu", { "bg": s:menu_grey }) " Popup menu: normal item. -call s:h("PmenuSel", { "fg": s:black, "bg": s:green, "gui": "bold", "cterm": "bold" }) " Popup menu: selected item. -call s:h("PmenuSbar", { "fg": s:green, "bg": s:cursor_grey }) " Popup menu: scrollbar. +call s:h("Normal", { "fg": s:foreground, "bg": s:background }) " normal text +call s:h("Pmenu", { "fg": s:white, "bg": s:menu_grey }) " Popup menu: normal item. +call s:h("PmenuSel", { "fg": s:cursor_grey, "bg": s:blue }) " Popup menu: selected item. +call s:h("PmenuSbar", { "bg": s:cursor_grey }) " Popup menu: scrollbar. call s:h("PmenuThumb", { "bg": s:white }) " Popup menu: Thumb of the scrollbar. call s:h("Question", { "fg": s:purple }) " hit-enter prompt and yes/no questions call s:h("QuickFixLine", { "fg": s:black, "bg": s:yellow }) " Current quickfix item in the quickfix window. @@ -258,8 +262,8 @@ call s:h("TabLine", { "fg": s:comment_grey }) " tab pages line, not active tab p call s:h("TabLineFill", {}) " tab pages line, where there are no labels call s:h("TabLineSel", { "fg": s:white }) " tab pages line, active tab page label call s:h("Terminal", { "fg": s:white, "bg": s:black }) " terminal window (see terminal-size-color) -call s:h("Title", { "fg": s:green, "gui": "bold", "cterm": "bold" }) " titles for output from ":set all", ":autocmd" etc. -call s:h("Visual", { "fg": s:visual_black, "bg": s:visual_grey }) " Visual mode selection +call s:h("Title", { "fg": s:green }) " titles for output from ":set all", ":autocmd" etc. +call s:h("Visual", { "bg": s:visual_grey }) " Visual mode selection call s:h("VisualNOS", { "bg": s:visual_grey }) " Visual mode selection when vim is "Not Owning the Selection". Only X11 Gui's gui-x11 and xterm-clipboard supports this. call s:h("WarningMsg", { "fg": s:yellow }) " warning messages call s:h("WildMenu", { "fg": s:black, "bg": s:blue }) " current match in 'wildmenu' completion @@ -438,7 +442,7 @@ call s:h("perlMatchStartEnd",{ "fg": s:blue }) call s:h("perlMethod", { "fg": s:purple }) call s:h("perlPOD", { "fg": s:comment_grey }) call s:h("perlSharpBang", { "fg": s:comment_grey }) -call s:h("perlSpecialString",{ "fg": s:cyan }) +call s:h("perlSpecialString",{ "fg": s:dark_yellow }) call s:h("perlStatementFiledesc", { "fg": s:red }) call s:h("perlStatementFlow",{ "fg": s:red }) call s:h("perlStatementInclude", { "fg": s:purple }) @@ -541,9 +545,14 @@ call s:h("xmlTagName", { "fg": s:red }) " Plugin Highlighting {{{ " airblade/vim-gitgutter -hi link GitGutterAdd SignifySignAdd -hi link GitGutterChange SignifySignChange -hi link GitGutterDelete SignifySignDelete +call s:h("GitGutterAdd", { "fg": s:green }) +call s:h("GitGutterChange", { "fg": s:yellow }) +call s:h("GitGutterDelete", { "fg": s:red }) + +" dense-analysis/ale +call s:h("ALEError", { "fg": s:red, "gui": "underline", "cterm": "underline" }) +call s:h("ALEWarning", { "fg": s:yellow, "gui": "underline", "cterm": "underline"}) +call s:h("ALEInfo", { "gui": "underline", "cterm": "underline"}) " easymotion/vim-easymotion call s:h("EasyMotionTarget", { "fg": s:red, "gui": "bold", "cterm": "bold" }) @@ -551,21 +560,38 @@ call s:h("EasyMotionTarget2First", { "fg": s:yellow, "gui": "bold", "cterm": "bo call s:h("EasyMotionTarget2Second", { "fg": s:dark_yellow, "gui": "bold", "cterm": "bold" }) call s:h("EasyMotionShade", { "fg": s:comment_grey }) +" lewis6991/gitsigns.nvim +hi link GitSignsAdd GitGutterAdd +hi link GitSignsChange GitGutterChange +hi link GitSignsDelete GitGutterDelete + " mhinz/vim-signify -call s:h("SignifySignAdd", { "fg": s:green }) -call s:h("SignifySignChange", { "fg": s:yellow }) -call s:h("SignifySignDelete", { "fg": s:red }) +hi link SignifySignAdd GitGutterAdd +hi link SignifySignChange GitGutterChange +hi link SignifySignDelete GitGutterDelete + +" neoclide/coc.nvim +call s:h("CocErrorSign", { "fg": s:red }) +call s:h("CocWarningSign", { "fg": s:yellow }) +call s:h("CocInfoSign", { "fg": s:blue }) +call s:h("CocHintSign", { "fg": s:cyan }) " neomake/neomake -call s:h("NeomakeWarningSign", { "fg": s:yellow }) call s:h("NeomakeErrorSign", { "fg": s:red }) +call s:h("NeomakeWarningSign", { "fg": s:yellow }) call s:h("NeomakeInfoSign", { "fg": s:blue }) " plasticboy/vim-markdown (keep consistent with Markdown, above) call s:h("mkdDelimiter", { "fg": s:purple }) call s:h("mkdHeading", { "fg": s:red }) call s:h("mkdLink", { "fg": s:blue }) -call s:h("mkdUrl", { "fg": s:cyan, "gui": "underline", "cterm": "underline" }) +call s:h("mkdURL", { "fg": s:cyan, "gui": "underline", "cterm": "underline" }) + +" prabirshrestha/vim-lsp +call s:h("LspError", { "fg": s:red }) +call s:h("LspWarning", { "fg": s:yellow }) +call s:h("LspInformation", { "fg": s:blue }) +call s:h("LspHint", { "fg": s:cyan }) " tpope/vim-fugitive call s:h("diffAdded", { "fg": s:green }) @@ -599,9 +625,10 @@ hi link gitcommitUnmergedArrow gitcommitUnmergedFile " }}} -" Neovim terminal colors {{{ +" Neovim-Specific Highlighting {{{ if has("nvim") + " Neovim terminal colors {{{ let g:terminal_color_0 = s:black.gui let g:terminal_color_1 = s:red.gui let g:terminal_color_2 = s:green.gui @@ -618,8 +645,31 @@ if has("nvim") let g:terminal_color_13 = s:purple.gui " No dark version let g:terminal_color_14 = s:cyan.gui " No dark version let g:terminal_color_15 = s:comment_grey.gui - let g:terminal_color_background = g:terminal_color_0 - let g:terminal_color_foreground = g:terminal_color_7 + let g:terminal_color_background = s:background.gui + let g:terminal_color_foreground = s:foreground.gui + " }}} + + " Neovim Diagnostics {{{ + call s:h("DiagnosticError", { "fg": s:red }) + call s:h("DiagnosticWarn", { "fg": s:yellow }) + call s:h("DiagnosticInfo", { "fg": s:blue }) + call s:h("DiagnosticHint", { "fg": s:cyan }) + call s:h("DiagnosticUnderlineError", { "fg": s:red, "gui": "underline", "cterm": "underline" }) + call s:h("DiagnosticUnderlineWarn", { "fg": s:yellow, "gui": "underline", "cterm": "underline" }) + call s:h("DiagnosticUnderlineInfo", { "fg": s:blue, "gui": "underline", "cterm": "underline" }) + call s:h("DiagnosticUnderlineHint", { "fg": s:cyan, "gui": "underline", "cterm": "underline" }) + " }}} + + " Neovim LSP (for versions < 0.5.1) {{{ + hi link LspDiagnosticsDefaultError DiagnosticError + hi link LspDiagnosticsDefaultWarning DiagnosticWarn + hi link LspDiagnosticsDefaultInformation DiagnosticInfo + hi link LspDiagnosticsDefaultHint DiagnosticHint + hi link LspDiagnosticsUnderlineError DiagnosticUnderlineError + hi link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn + hi link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo + hi link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint + " }}} endif " }}}