forked from VimPlug/emmet-vim
Remove div element for snippets
This commit is contained in:
@@ -124,13 +124,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type)
|
|||||||
endif
|
endif
|
||||||
for k in keys(custom_expands)
|
for k in keys(custom_expands)
|
||||||
if tag_name =~ k
|
if tag_name =~ k
|
||||||
if parent.name == ''
|
|
||||||
let div = emmet#lang#html#parseTag('<div/>')
|
|
||||||
let div.value = '{\${' . tag_name . '}}'
|
|
||||||
let current.snippet = emmet#toString(div, type, 0, [])
|
|
||||||
else
|
|
||||||
let current.snippet = '${' . tag_name . '}'
|
let current.snippet = '${' . tag_name . '}'
|
||||||
endif
|
|
||||||
let current.name = ''
|
let current.name = ''
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user