nvim: only install ultisnips if python available

This commit is contained in:
dogeystamp 2023-01-20 20:27:07 -05:00
parent 69915c06fe
commit 0a1e31d35f
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -108,10 +108,12 @@ au BufEnter *.tex set spell spelllang=en_ca
" au TextChanged,TextChangedI *.tex silent write
Plug 'SirVer/ultisnips'
let g:UltiSnipsExpandTrigger="<c-m>"
let g:UltiSnipsJumpForwardTrigger="<c-m>"
let g:UltiSnipsJumpBackwardTrigger="<c-b>"
let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/']
if has('python3')
Plug 'SirVer/ultisnips'
let g:UltiSnipsExpandTrigger="<c-m>"
let g:UltiSnipsJumpForwardTrigger="<c-m>"
let g:UltiSnipsJumpBackwardTrigger="<c-b>"
let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/']
endif
call plug#end()