summaryrefslogtreecommitdiff
path: root/modules/vim-which-key.vim
diff options
context:
space:
mode:
authorChris <[email protected]>2020-03-31 20:22:03 -0400
committerChris <[email protected]>2020-03-31 20:22:03 -0400
commit4ed7236a6fccf027fe020330e8d0c4338a1e4aaf (patch)
tree1f1ec7b65bd65d8f423322dd9073f0a663b42d3e /modules/vim-which-key.vim
parent7da740604820bab2b9a68c433828ff377811f644 (diff)
vim which key not working with neovim 0.4.0
Diffstat (limited to 'modules/vim-which-key.vim')
-rw-r--r--modules/vim-which-key.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/vim-which-key.vim b/modules/vim-which-key.vim
index 962e412b..05c09ce4 100644
--- a/modules/vim-which-key.vim
+++ b/modules/vim-which-key.vim
@@ -105,5 +105,9 @@ call which_key#register('<Space>', "g:which_key_map")
nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
vnoremap <silent> <leader> :<c-u>WhichKeyVisual '<Space>'<CR>
+" Get rid of status bar when not in use
+autocmd! FileType which_key
+autocmd FileType which_key set laststatus=0 noshowmode noruler
+ \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
""nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
""nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>