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'
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
" Config of ellisonleao/gruvbox for neovim and gruvbox-community/gruvbox
" otherwise
- if has('nvim')
+ if has('nvim-0.8')
lua <<EOF
-- Required before setting colorscheme to gruvbox
require("gruvbox").setup({
require('mini.pick').setup()
require('mini.sessions').setup()
require('mini.splitjoin').setup()
- require('mini.statusline').setup()
require('mini.surround').setup()
require('mini.tabline').setup()
require('mini.trailspace').setup()
+EOF
+ endif
+
+ " Use mini's statusline from nvim-0.8 on and fallback to airline
+ if has('nvim-0.8')
+ lua <<EOF
+ require('mini.statusline').setup()
EOF
else
let g:airline_powerline_fonts=1