From 0cbe21d8c80c0822a260870092fcd0098356b07f Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 12 Apr 2017 19:34:09 +0800 Subject: [PATCH] Improve statusline of guide --- autoload/SpaceVim/mapping/guide.vim | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/mapping/guide.vim b/autoload/SpaceVim/mapping/guide.vim index 075ab5f4b..c14a1acab 100644 --- a/autoload/SpaceVim/mapping/guide.vim +++ b/autoload/SpaceVim/mapping/guide.vim @@ -9,6 +9,7 @@ let s:save_cpo = &cpo set cpo&vim + function! SpaceVim#mapping#guide#has_configuration() "{{{ return exists('s:desc_lookup') endfunction "}}} @@ -383,8 +384,15 @@ function! s:winopen() " {{{ endfunction " }}} function! s:updateStatusline() abort - exe 'setlocal statusline=\ Leader\ Guide\ for:\ ' . - \ SpaceVim#mapping#leader#getName(s:prefix_key) + hi! LeaderGuiderPrompt cterm=bold gui=bold guifg=#282828 guibg=#a89984 + 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 function! s:winclose() " {{{