From 4b6b7509161b8d756d0751432d967782906feeb5 Mon Sep 17 00:00:00 2001 From: kenny Date: Tue, 17 Dec 2019 11:13:07 -0800 Subject: [PATCH 1/2] [onehalfdark.vim] Add the terminal ansi colors to support :set termguicolors. --- vim/colors/onehalfdark.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vim/colors/onehalfdark.vim b/vim/colors/onehalfdark.vim index fb0d7c5..59d84a5 100644 --- a/vim/colors/onehalfdark.vim +++ b/vim/colors/onehalfdark.vim @@ -196,6 +196,19 @@ hi link gitcommitSelectedArrow gitcommitSelectedFile hi link gitcommitUnmergedArrow gitcommitUnmergedFile " } +" Fix colors in terminal buffers { + if has('terminal') + 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:black.gui, s:red.gui, s:green.gui, s:yellow.gui, + \ s:blue.gui, s:purple.gui, s:cyan.gui, s:white.gui + \] + let g:terminal_color_background = s:bg.gui + let g:terminal_color_foreground = s:fg.gui + endif +" } + " Fix colors in neovim terminal buffers { if has('nvim') let g:terminal_color_0 = s:black.gui From f7568577253f2061bc251b2f1019736edb6c882b Mon Sep 17 00:00:00 2001 From: kenny Date: Tue, 17 Dec 2019 11:19:41 -0800 Subject: [PATCH 2/2] [onehalflight.vim] Add the terminal ansi colors to support :set termguicolors. --- vim/colors/onehalflight.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vim/colors/onehalflight.vim b/vim/colors/onehalflight.vim index cdfaa42..1ffd7eb 100644 --- a/vim/colors/onehalflight.vim +++ b/vim/colors/onehalflight.vim @@ -196,6 +196,19 @@ hi link gitcommitSelectedArrow gitcommitSelectedFile hi link gitcommitUnmergedArrow gitcommitUnmergedFile " } +" Fix colors in terminal buffers { + if has('terminal') + 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:black.gui, s:red.gui, s:green.gui, s:yellow.gui, + \ s:blue.gui, s:purple.gui, s:cyan.gui, s:white.gui + \] + let g:terminal_color_background = s:bg.gui + let g:terminal_color_foreground = s:fg.gui + endif +" } + " Fix colors in neovim terminal buffers { if has('nvim') let g:terminal_color_0 = s:black.gui