Improve make cache behavior
This commit is contained in:
parent
4f36f44726
commit
001b7c65bf
@ -112,12 +112,14 @@ function! neosnippet#commands#_make_cache(filetype) "{{{
|
|||||||
\ map(split(get(g:neosnippet#scope_aliases,
|
\ map(split(get(g:neosnippet#scope_aliases,
|
||||||
\ filetype, filetype), '\s*,\s*'), "
|
\ filetype, filetype), '\s*,\s*'), "
|
||||||
\ [v:val . '.snip*', v:val . '/**/*.snip*']
|
\ [v:val . '.snip*', v:val . '/**/*.snip*']
|
||||||
\ + (v:val ==# filetype ? [v:val . '_*.snip*'] : [])"))
|
\ + (filetype != '_' &&
|
||||||
|
\ !has_key(g:neosnippet#scope_aliases, filetype) ?
|
||||||
|
\ [v:val . '_*.snip*'] : [])"))
|
||||||
let snippets_files += split(globpath(path, glob), '\n')
|
let snippets_files += split(globpath(path, glob), '\n')
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
let snippet = {}
|
let snippet = {}
|
||||||
call map(reverse(snippets_files),
|
call map(reverse(s:get_list().uniq(snippets_files)),
|
||||||
\ "neosnippet#parser#_parse(snippet, v:val)")
|
\ "neosnippet#parser#_parse(snippet, v:val)")
|
||||||
|
|
||||||
let snippets = neosnippet#variables#snippets()
|
let snippets = neosnippet#variables#snippets()
|
||||||
|
Loading…
Reference in New Issue
Block a user