Fixed test for s:has_neosnippet (fixes #259)
This commit is contained in:
parent
0ee4a177ae
commit
41d2b6c4cc
@ -14,12 +14,9 @@ endfunction
|
|||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
function! vimtex#imaps#init_script() " {{{1
|
function! vimtex#imaps#init_script() " {{{1
|
||||||
let s:has_ultisnips = exists('*UltiSnips#Anon')
|
let l:rtp = split(&rtp, ',')
|
||||||
|
let s:has_ultisnips = len(filter(copy(l:rtp), "v:val =~? 'ultisnips'")) > 0
|
||||||
try
|
let s:has_neosnippet = len(filter(copy(l:rtp), "v:val =~? 'neosnippet'")) > 0
|
||||||
silent! call neosnippet#anonymous('')
|
|
||||||
endtry
|
|
||||||
let s:has_neosnippet = exists('*neosnippet#anonymous')
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user