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