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