mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 17:20:05 +08:00
Fix indent in SPVersion
This commit is contained in:
parent
51f461da4e
commit
f26245be42
@ -144,9 +144,9 @@ function! SpaceVim#commands#install_plugin(...) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#commands#version() abort
|
function! SpaceVim#commands#version() abort
|
||||||
echo 'SpaceVim ' . g:spacevim_version . '-' . s:SHA() . "\n" .
|
echo 'SpaceVim ' . g:spacevim_version . s:SHA() . "\n" .
|
||||||
\ "\n" .
|
\ "\n" .
|
||||||
\ 'Optional features included (+) or not (-):' . "\n"
|
\ 'Optional features included (+) or not (-):' . "\n" .
|
||||||
\ s:check_features([
|
\ s:check_features([
|
||||||
\ 'tui',
|
\ 'tui',
|
||||||
\ 'jemalloc',
|
\ 'jemalloc',
|
||||||
@ -249,6 +249,7 @@ function! s:check_features(features) abort
|
|||||||
let rst = ''
|
let rst = ''
|
||||||
let id = 1
|
let id = 1
|
||||||
for f in flist
|
for f in flist
|
||||||
|
let rst .= ' '
|
||||||
let rst .= f . repeat(' ', 20 - len(f))
|
let rst .= f . repeat(' ', 20 - len(f))
|
||||||
if id == 3
|
if id == 3
|
||||||
let rst .= "\n"
|
let rst .= "\n"
|
||||||
@ -261,7 +262,11 @@ function! s:check_features(features) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SHA() abort
|
function! s:SHA() abort
|
||||||
return system('git --no-pager -C ~/.SpaceVim log -n 1 --oneline')[:7]
|
let sha = system('git --no-pager -C ~/.SpaceVim log -n 1 --oneline')[:7]
|
||||||
|
if v:shell_error
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
return '-' . sha
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user