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 "{{{
|
||||||
|
" context_filetype.vim installation check.
|
||||||
if !exists('s:exists_context_filetype')
|
if !exists('s:exists_context_filetype')
|
||||||
" context_filetype.vim installation check.
|
silent! call context_filetype#version()
|
||||||
try
|
let s:exists_context_filetype = exists('*context_filetype#version')
|
||||||
call context_filetype#version()
|
|
||||||
let s:exists_context_filetype = 1
|
|
||||||
catch
|
|
||||||
let s:exists_context_filetype = 0
|
|
||||||
endtry
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let context_filetype =
|
let context_filetype =
|
||||||
|
Loading…
Reference in New Issue
Block a user