1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 20:09:10 +08:00

Set indentation only if default_indent is positive (#4116)

Sometimes `tapstop`, `softtabstop` and `shiftwidth` may need to be set separately to different values in a bootstrap function.
This commit is contained in:
zeertzjq 2021-03-02 09:04:03 +08:00 committed by GitHub
parent ce89a20ad1
commit 0c1e49eb1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1359,9 +1359,12 @@ function! SpaceVim#end() abort
" tab options:
set smarttab
let &expandtab = g:spacevim_expand_tab
let &tabstop = g:spacevim_default_indent
let &softtabstop = g:spacevim_default_indent
let &shiftwidth = g:spacevim_default_indent
if g:spacevim_default_indent > 0
let &tabstop = g:spacevim_default_indent
let &softtabstop = g:spacevim_default_indent
let &shiftwidth = g:spacevim_default_indent
endif
let g:unite_source_menu_menus =
\ get(g:,'unite_source_menu_menus',{})