nvim: only install ultisnips if python available
This commit is contained in:
parent
69915c06fe
commit
0a1e31d35f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user