Browse Source

vim which key not working with neovim 0.4.0

Chris 5 years ago
parent
commit
4ed7236a6f
2 changed files with 5 additions and 3 deletions
  1. 1 3
      modules/general.vim
  2. 4 0
      modules/vim-which-key.vim

+ 1 - 3
modules/general.vim

@@ -3,8 +3,6 @@ if &compatible
   set nocompatible
 endif
 
-set runtimepath^=~/.config/_vim
-
 " set leader key
 let g:mapleader="\\"
 " alias for leader key
@@ -19,7 +17,7 @@ set encoding=utf-8                      " The encoding displayed
 set pumheight=10                        " Makes popup menu smaller
 set fileencoding=utf-8                  " The encoding written to file
 set ruler              					        " show the cursor position all the time
-set cmdheight=2
+set cmdheight=1
 set iskeyword+=-                      	" treat dash separated words as a word text object"
 set mouse=a                             " Enable your mouse
 set splitbelow                          " Horizontal splits will automatically be below

+ 4 - 0
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>