From: Stefan Huber Date: Tue, 23 Jul 2024 17:08:15 +0000 (+0200) Subject: plugins-mini: Add neovim-compat gruvbox X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=73c7d85b78e0b05b26d83874cc834c4fd0c2714c;p=vimconf.git plugins-mini: Add neovim-compat gruvbox --- diff --git a/plugins-mini.vim b/plugins-mini.vim index 2684dad..2c2b9a6 100644 --- a/plugins-mini.vim +++ b/plugins-mini.vim @@ -6,7 +6,13 @@ endfunction Plug 'mhinz/vim-startify' Plug 'dstein64/vim-startuptime' -Plug 'gruvbox-community/gruvbox' +" The original repo from gruvbox-community would not support treestitter and +" semantic highlighting +if has('nvim') + Plug 'ellisonleao/gruvbox.nvim' +else + Plug 'gruvbox-community/gruvbox' +endif Plug 'benknoble/vim-auto-origami' @@ -37,19 +43,30 @@ endif function PluginsConfigMini() - let g:gruvbox_contrast_light='hard' - let g:gruvbox_contrast_dark='hard' - set bg=dark - - if &term =~ 'linux' - let g:gruvbox_termcolors=16 + " Config of ellisonleao/gruvbox for neovim and gruvbox-community/gruvbox + " otherwise + if has('nvim') + lua <