1

Try to disable neovim plugins on old installations

This commit is contained in:
Evan Pratten 2024-04-15 19:44:57 -04:00
parent 8f7b9c363f
commit 3bcdee18a4

View File

@ -27,11 +27,14 @@ if !exists('g:vscode')
autocmd BufWritePost * GitGutter autocmd BufWritePost * GitGutter
endif endif
" Don't bother loading plugins if we are on a really old NeoVim installation
if has('nvim-0.5')
" Enable Leap " Enable Leap
lua require('leap').add_default_mappings() lua require('leap').add_default_mappings()
" Enable trailing space detection " Enable trailing space detection
lua require('mini.trailspace').setup() lua require('mini.trailspace').setup()
endif
" Configure floating window colours " Configure floating window colours
highlight Pmenu ctermbg=none ctermfg=white highlight Pmenu ctermbg=none ctermfg=white