mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 11:34:46 +08:00
Use indent getting from configuration, Fix #201
This commit is contained in:
@@ -21,7 +21,7 @@ function! emmet#lang#css#parseIntoTree(abbr, type)
|
|||||||
let block = emmet#util#searchRegion("{", "}")
|
let block = emmet#util#searchRegion("{", "}")
|
||||||
if type == 'css' && block[0] == [0,0] && block[1] == [0,0]
|
if type == 'css' && block[0] == [0,0] && block[1] == [0,0]
|
||||||
let current = emmet#newNode()
|
let current = emmet#newNode()
|
||||||
let current.snippet = abbr . " {\n\t${cursor}\n}"
|
let current.snippet = abbr . " {\n" . indent . "${cursor}\n}"
|
||||||
let current.name = ''
|
let current.name = ''
|
||||||
call add(root.child, deepcopy(current))
|
call add(root.child, deepcopy(current))
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user