From: Stefan Huber Date: Sun, 28 Jul 2024 19:07:00 +0000 (+0200) Subject: plugins: Fixes for nvim-0.7 or lower X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=2189f85752fd15de8ccbae01ff3ed2ece3e59c79;p=vimconf.git plugins: Fixes for nvim-0.7 or lower --- diff --git a/plugins-mini.vim b/plugins-mini.vim index 2c2b9a6..378892a 100644 --- a/plugins-mini.vim +++ b/plugins-mini.vim @@ -7,8 +7,8 @@ Plug 'mhinz/vim-startify' Plug 'dstein64/vim-startuptime' " The original repo from gruvbox-community would not support treestitter and -" semantic highlighting -if has('nvim') +" semantic highlighting. But gruvbox.nvim requires nvim-0.8. +if has('nvim-0.8') Plug 'ellisonleao/gruvbox.nvim' else Plug 'gruvbox-community/gruvbox' @@ -36,7 +36,10 @@ endif if has('nvim-0.7') Plug 'echasnovski/mini.nvim'", { 'branch': 'stable' } -else +endif + +" mini.vim's status line requires nvim-0.8 +if !has('nvim-0.8') Plug 'vim-airline/vim-airline' endif @@ -45,7 +48,7 @@ function PluginsConfigMini() " Config of ellisonleao/gruvbox for neovim and gruvbox-community/gruvbox " otherwise - if has('nvim') + if has('nvim-0.8') lua <