From 0a1e31d35f634f8b47c648a46169caa711d5192a Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 20 Jan 2023 20:27:07 -0500 Subject: [PATCH] nvim: only install ultisnips if python available --- src/.config/nvim/init.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index b3900e5..deba464 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -108,10 +108,12 @@ au BufEnter *.tex set spell spelllang=en_ca " au TextChanged,TextChangedI *.tex silent write -Plug 'SirVer/ultisnips' -let g:UltiSnipsExpandTrigger="" -let g:UltiSnipsJumpForwardTrigger="" -let g:UltiSnipsJumpBackwardTrigger="" -let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/'] +if has('python3') + Plug 'SirVer/ultisnips' + let g:UltiSnipsExpandTrigger="" + let g:UltiSnipsJumpForwardTrigger="" + let g:UltiSnipsJumpBackwardTrigger="" + let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/'] +endif call plug#end()