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