mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
add function to get snippets candidates for completion. thanks: https://gist.github.com/469369
This commit is contained in:
@@ -591,6 +591,14 @@ function! zencoding#ExpandWord(abbr, type, orig)
|
|||||||
return expand
|
return expand
|
||||||
endfunction
|
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)
|
function! zencoding#CompleteTag(findstart, base)
|
||||||
if a:findstart
|
if a:findstart
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
|
|||||||
Reference in New Issue
Block a user