mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-08 15:14:11 +01:00
added support for hyphenated global snippets (_-foo)
This commit is contained in:
@@ -103,8 +103,8 @@ fun! ResetSnippets()
|
||||
endf
|
||||
|
||||
let g:did_ft = {}
|
||||
fun! GetSnippets(dir)
|
||||
for ft in split(&ft, '\.')
|
||||
fun! GetSnippets(dir, filetype)
|
||||
for ft in split(a:filetype, '\.')
|
||||
if has_key(g:did_ft, ft) | continue | endif
|
||||
for path in split(globpath(a:dir, ft.'/')."\n".
|
||||
\ globpath(a:dir, ft.'-*/'), "\n")
|
||||
|
||||
Reference in New Issue
Block a user