Use context_filetype plugin for source filetypes

This commit is contained in:
Shougo Matsushita 2015-10-31 18:11:25 +09:00
parent b214f7e3fd
commit 755f08a08f
1 changed files with 2 additions and 4 deletions

View File

@ -193,10 +193,8 @@ endfunction"}}}
function! s:get_sources_filetypes(filetype) "{{{
let filetypes =
\ exists('*neocomplete#get_source_filetypes') ?
\ neocomplete#get_source_filetypes(a:filetype) :
\ exists('*neocomplcache#get_source_filetypes') ?
\ neocomplcache#get_source_filetypes(a:filetype) :
\ exists('*context_filetype#get_filetypes') ?
\ context_filetype#get_filetypes(a:filetype) :
\ split(((a:filetype == '') ? 'nothing' : a:filetype), '\.')
return filetypes + ['_']
endfunction"}}}