Skip to content

Commit

Permalink
Use context_filetype plugin for source filetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Oct 31, 2015
1 parent b214f7e commit 755f08a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions autoload/neosnippet/helpers.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}}
Expand Down

0 comments on commit 755f08a

Please sign in to comment.