Use context_filetype plugin for source filetypes
This commit is contained in:
parent
b214f7e3fd
commit
755f08a08f
@ -193,10 +193,8 @@ endfunction"}}}
|
|||||||
|
|
||||||
function! s:get_sources_filetypes(filetype) "{{{
|
function! s:get_sources_filetypes(filetype) "{{{
|
||||||
let filetypes =
|
let filetypes =
|
||||||
\ exists('*neocomplete#get_source_filetypes') ?
|
\ exists('*context_filetype#get_filetypes') ?
|
||||||
\ neocomplete#get_source_filetypes(a:filetype) :
|
\ context_filetype#get_filetypes(a:filetype) :
|
||||||
\ exists('*neocomplcache#get_source_filetypes') ?
|
|
||||||
\ neocomplcache#get_source_filetypes(a:filetype) :
|
|
||||||
\ split(((a:filetype == '') ? 'nothing' : a:filetype), '\.')
|
\ split(((a:filetype == '') ? 'nothing' : a:filetype), '\.')
|
||||||
return filetypes + ['_']
|
return filetypes + ['_']
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
Loading…
Reference in New Issue
Block a user