Fix snippets order problem

This commit is contained in:
Shougo Matsushita 2015-11-07 10:20:02 +09:00
parent cf9958c63b
commit bc7904ca36

View File

@ -51,8 +51,7 @@ function! neosnippet#helpers#get_snippets() "{{{
let snippets = copy(neosnippet.snippets)
for filetype in s:get_sources_filetypes(neosnippet#helpers#get_filetype())
call neosnippet#commands#_make_cache(filetype)
call extend(snippets,
\ neosnippet#variables#snippets()[filetype], 'keep')
call extend(snippets, neosnippet#variables#snippets()[filetype])
endfor
let cur_text = neosnippet#util#get_cur_text()
@ -196,7 +195,7 @@ function! s:get_sources_filetypes(filetype) "{{{
\ exists('*context_filetype#get_filetypes') ?
\ context_filetype#get_filetypes(a:filetype) :
\ split(((a:filetype == '') ? 'nothing' : a:filetype), '\.')
return filetypes + ['_']
return ['_'] + filetypes
endfunction"}}}
let &cpo = s:save_cpo