add function to get snippets candidates for completion. thanks: https://gist.github.com/469369

This commit is contained in:
mattn
2012-05-31 19:25:21 +09:00
parent c3785c4a1a
commit 04b34844f1

View File

@@ -591,6 +591,14 @@ function! zencoding#ExpandWord(abbr, type, orig)
return expand
endfunction
function! zencoding#getSnippets(type)
let type = a:type
if len(type) == 0 || !has_key(s:zen_settings, type)
let type = 'html'
endif
return s:zen_getResource(type, 'snippets', {})
endfunction
function! zencoding#CompleteTag(findstart, base)
if a:findstart
let line = getline('.')