From 3bcdee18a44823f1386d7801981d81f4fc8b336a Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 15 Apr 2024 19:44:57 -0400 Subject: [PATCH] Try to disable neovim plugins on old installations --- configs/nvim/init.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configs/nvim/init.vim b/configs/nvim/init.vim index 14f4ce4..7c0a93a 100644 --- a/configs/nvim/init.vim +++ b/configs/nvim/init.vim @@ -27,11 +27,14 @@ if !exists('g:vscode') autocmd BufWritePost * GitGutter endif -" Enable Leap -lua require('leap').add_default_mappings() +" Don't bother loading plugins if we are on a really old NeoVim installation +if has('nvim-0.5') + " Enable Leap + lua require('leap').add_default_mappings() -" Enable trailing space detection -lua require('mini.trailspace').setup() + " Enable trailing space detection + lua require('mini.trailspace').setup() +endif " Configure floating window colours highlight Pmenu ctermbg=none ctermfg=white