From f7a188528640369ef1ad6b360b7955854b333d01 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Wed, 30 Jan 2019 18:48:18 +0800 Subject: [PATCH] Update statusline after signify updated (#2528) --- autoload/SpaceVim/layers/VersionControl.vim | 3 +-- config/plugins/vim-signify.vim | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 config/plugins/vim-signify.vim diff --git a/autoload/SpaceVim/layers/VersionControl.vim b/autoload/SpaceVim/layers/VersionControl.vim index c05ae933a..e7c008c47 100644 --- a/autoload/SpaceVim/layers/VersionControl.vim +++ b/autoload/SpaceVim/layers/VersionControl.vim @@ -14,7 +14,7 @@ let s:enable_gtm_status = 0 function! SpaceVim#layers#VersionControl#plugins() abort let plugins = [] - call add(plugins, ['mhinz/vim-signify', {'merged' : 0}]) + call add(plugins, ['mhinz/vim-signify', {'merged' : 0, 'loadconf' : 1}]) call add(plugins, ['tpope/vim-fugitive', { 'merged' : 0}]) return plugins endfunction @@ -122,7 +122,6 @@ function! s:hunks() abort endif return empty(rst) ? '' : ' ' . rst endfunction - " vcs transient state functions: " first we need to open a buffer contains: diff --git a/config/plugins/vim-signify.vim b/config/plugins/vim-signify.vim new file mode 100644 index 000000000..626ad1d42 --- /dev/null +++ b/config/plugins/vim-signify.vim @@ -0,0 +1,5 @@ +augroup signify_config + autocmd! + autocmd User Signify let &l:statusline = SpaceVim#layers#core#statusline#get(1) +augroup END +