Fix snippets order problem
This commit is contained in:
parent
cf9958c63b
commit
bc7904ca36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user