Fixed test for s:has_neosnippet (fixes #259)

This commit is contained in:
Karl Yngve Lervåg 2015-10-26 09:23:16 +01:00
parent 0ee4a177ae
commit 41d2b6c4cc

View File

@ -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