- Improved caching snippet files.
This commit is contained in:
parent
d4413637d6
commit
1367f60705
@ -1,7 +1,7 @@
|
||||
"=============================================================================
|
||||
" FILE: snippets_complete.vim
|
||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||
" Last Modified: 06 Jun 2012.
|
||||
" Last Modified: 02 Aug 2012.
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
@ -366,10 +366,13 @@ function! s:caching_snippets(filetype)"{{{
|
||||
\ &filetype : a:filetype
|
||||
|
||||
let snippet = {}
|
||||
let snippets_files = split(globpath(join(s:snippets_dir, ','),
|
||||
\ filetype . '.snip*'), '\n')
|
||||
let snippets_files =
|
||||
\ split(globpath(join(s:snippets_dir, ','),
|
||||
\ filetype . '.snip*'), '\n')
|
||||
\ + split(globpath(join(s:snippets_dir, ','),
|
||||
\ filetype . '_*.snip*'), '\n')
|
||||
\ filetype . '_*.snip*'), '\n')
|
||||
\ + split(globpath(join(s:snippets_dir, ','),
|
||||
\ filetype . '/*.snip*'), '\n')
|
||||
for snippets_file in snippets_files
|
||||
call s:load_snippets(snippet, snippets_file)
|
||||
endfor
|
||||
|
@ -309,6 +309,9 @@ snippet *neocomplcache-snippets-complete-unite-action-snippet*
|
||||
==============================================================================
|
||||
CHANGELOG *neocomplcache-snippets-complete-changelog*
|
||||
|
||||
2012-08-02
|
||||
- Improved caching snippet files.
|
||||
|
||||
2012-06-06
|
||||
- Added neocomplcache#sources#snippets_complete#get_snippets_dir().
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user