Improve context_filetype check
This commit is contained in:
parent
9492fbb7e9
commit
bd22f4ed56
@ -91,14 +91,10 @@ function! neosnippet#helpers#get_snippets_directory() abort "{{{
|
|||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! neosnippet#helpers#get_filetype() abort "{{{
|
function! neosnippet#helpers#get_filetype() abort "{{{
|
||||||
if !exists('s:exists_context_filetype')
|
|
||||||
" context_filetype.vim installation check.
|
" context_filetype.vim installation check.
|
||||||
try
|
if !exists('s:exists_context_filetype')
|
||||||
call context_filetype#version()
|
silent! call context_filetype#version()
|
||||||
let s:exists_context_filetype = 1
|
let s:exists_context_filetype = exists('*context_filetype#version')
|
||||||
catch
|
|
||||||
let s:exists_context_filetype = 0
|
|
||||||
endtry
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let context_filetype =
|
let context_filetype =
|
||||||
|
Loading…
Reference in New Issue
Block a user