mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
Using shiftwidth()
This commit is contained in:
@@ -49,7 +49,7 @@ function! emmet#getIndentation(...) abort
|
|||||||
elseif has_key(s:emmet_settings.variables, 'indentation')
|
elseif has_key(s:emmet_settings.variables, 'indentation')
|
||||||
let indent = s:emmet_settings.variables.indentation
|
let indent = s:emmet_settings.variables.indentation
|
||||||
else
|
else
|
||||||
let indent = (&l:expandtab || &l:tabstop !=# &l:shiftwidth) ? repeat(' ', &l:shiftwidth) : "\t"
|
let indent = (&l:expandtab || &l:tabstop !=# shiftwidth()) ? repeat(' ', shiftwidth()) : "\t"
|
||||||
endif
|
endif
|
||||||
return indent
|
return indent
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user