From 355789b029a2c281f32adad3a21a57c621dc09cf Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 19 Oct 2012 16:07:15 +0900 Subject: [PATCH] - Search snippets recursively. --- autoload/neosnippet.vim | 4 ++-- doc/neosnippet.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 3734331..fa9f2f2 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: neosnippet.vim " AUTHOR: Shougo Matsushita -" Last Modified: 18 Oct 2012. +" Last Modified: 19 Oct 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 @@ -302,7 +302,7 @@ function! neosnippet#make_cache(filetype)"{{{ \ + split(globpath(join(snippets_dir, ','), \ filetype . '_*.snip*'), '\n') \ + split(globpath(join(snippets_dir, ','), - \ filetype . '/*.snip*'), '\n') + \ filetype . '/**/*.snip*'), '\n') for snippets_file in reverse(snippets_files) call s:load_snippets(snippet, snippets_file) endfor diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index f35968f..a04b0c6 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -433,6 +433,7 @@ CHANGELOG *neosnippet-changelog* 2012-10-19 - Fixed syntax highlight. - Improved documentation. +- Search snippets recursively. 2012-10-18 - Fixed s:get_sources_list().