1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00

Improve statusline of guide

This commit is contained in:
wsdjeg 2017-04-12 19:34:09 +08:00
parent 72b379010a
commit 0cbe21d8c8

View File

@ -9,6 +9,7 @@
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
function! SpaceVim#mapping#guide#has_configuration() "{{{ function! SpaceVim#mapping#guide#has_configuration() "{{{
return exists('s:desc_lookup') return exists('s:desc_lookup')
endfunction "}}} endfunction "}}}
@ -383,8 +384,15 @@ function! s:winopen() " {{{
endfunction " }}} endfunction " }}}
function! s:updateStatusline() abort function! s:updateStatusline() abort
exe 'setlocal statusline=\ Leader\ Guide\ for:\ ' . hi! LeaderGuiderPrompt cterm=bold gui=bold guifg=#282828 guibg=#a89984
\ SpaceVim#mapping#leader#getName(s:prefix_key) hi! LeaderGuiderSep1 cterm=bold gui=bold guifg=#a89984 guibg=#fe8019
hi! LeaderGuiderName cterm=bold gui=bold guifg=#282828 guibg=#fe8019
hi! LeaderGuiderSep2 cterm=bold gui=bold guifg=#fe8019 guibg=#3c3836
hi! LeaderGuiderFill guifg=#7c6f64 guibg=#3c3836
exe 'setlocal statusline=%#LeaderGuiderPrompt#\ Leader\ Guide:\ ' .
\ '%#LeaderGuiderSep1#' .
\ '%#LeaderGuiderName#' .
\ SpaceVim#mapping#leader#getName(s:prefix_key) . '%#LeaderGuiderSep2#%#LeaderGuiderFill#'
endfunction endfunction
function! s:winclose() " {{{ function! s:winclose() " {{{