mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Fix an issue with termguicolors option
According to https://github.com/equalsraf/neovim-qt/issues/604, nvim-qt will set the termguicolors options when it is started. However, if we add `set notermguicolors` in init.vim, the nvim-qt setting will not take effect after nvim-qt is started. So we need to remove the `set notermguicolors` setting in the config.
This commit is contained in:
parent
9d8d46197a
commit
fd92f48677
26
ui.vim
26
ui.vim
@ -1,13 +1,10 @@
|
|||||||
"{ Colorscheme and highlight settings
|
"{ Colorscheme and highlight settings
|
||||||
"{{ General settings about colors
|
"{{ General settings about colors
|
||||||
" Enable true colors support (Do not use this option if your terminal does not
|
" Enable true colors support. Do not use this option if your terminal does not
|
||||||
" support true colors! For a comprehensive list of terminals supporting true
|
" support true colors! For a comprehensive list of terminals supporting true
|
||||||
" colors, see https://github.com/termstandard/colors and
|
" colors, see https://github.com/termstandard/colors and https://bit.ly/2InF97t.
|
||||||
" https://bit.ly/2InF97t)
|
|
||||||
if $TERM == "xterm-256color"
|
if $TERM == "xterm-256color"
|
||||||
set termguicolors
|
set termguicolors
|
||||||
else
|
|
||||||
set notermguicolors
|
|
||||||
endif
|
endif
|
||||||
" Use dark background
|
" Use dark background
|
||||||
set background=dark
|
set background=dark
|
||||||
@ -17,8 +14,7 @@ set background=dark
|
|||||||
""""""""""""""""""""""""""""gruvbox settings"""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""gruvbox settings"""""""""""""""""""""""""""
|
||||||
" We should check if theme exists before using it, otherwise you will get
|
" We should check if theme exists before using it, otherwise you will get
|
||||||
" error message when starting Nvim
|
" error message when starting Nvim
|
||||||
if &termguicolors
|
if utils#HasColorscheme('gruvbox8')
|
||||||
if utils#HasColorscheme('gruvbox8')
|
|
||||||
" Italic options should be put before colorscheme setting,
|
" Italic options should be put before colorscheme setting,
|
||||||
" see https://goo.gl/8nXhcp
|
" see https://goo.gl/8nXhcp
|
||||||
let g:gruvbox_italics=1
|
let g:gruvbox_italics=1
|
||||||
@ -26,18 +22,8 @@ if &termguicolors
|
|||||||
let g:gruvbox_filetype_hi_groups = 0
|
let g:gruvbox_filetype_hi_groups = 0
|
||||||
let g:gruvbox_plugin_hi_groups = 0
|
let g:gruvbox_plugin_hi_groups = 0
|
||||||
colorscheme gruvbox8_hard
|
colorscheme gruvbox8_hard
|
||||||
else
|
|
||||||
colorscheme desert
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
if utils#HasColorscheme('badwolf')
|
|
||||||
let g:badwolf_darkgutter = 0
|
|
||||||
" Make the tab line lighter than the background.
|
|
||||||
let g:badwolf_tabline = 2
|
|
||||||
colorscheme badwolf
|
|
||||||
else
|
|
||||||
colorscheme desert
|
colorscheme desert
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
""""""""""""""""""""""""""" deus settings"""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""" deus settings"""""""""""""""""""""""""""""""""
|
||||||
@ -58,5 +44,11 @@ endif
|
|||||||
" " theme_style can be 'default', 'dark' or 'palenight'
|
" " theme_style can be 'default', 'dark' or 'palenight'
|
||||||
" let g:material_theme_style = 'dark'
|
" let g:material_theme_style = 'dark'
|
||||||
" colorscheme material
|
" colorscheme material
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""" badwolf settings """""""""""""""""""""""""""""
|
||||||
|
" let g:badwolf_darkgutter = 0
|
||||||
|
" " Make the tab line lighter than the background.
|
||||||
|
" let g:badwolf_tabline = 2
|
||||||
|
" colorscheme badwolf
|
||||||
"}}
|
"}}
|
||||||
"}
|
"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user