From 4ed7236a6fccf027fe020330e8d0c4338a1e4aaf Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 31 Mar 2020 20:22:03 -0400 Subject: vim which key not working with neovim 0.4.0 --- modules/general.vim | 4 +--- modules/vim-which-key.vim | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/general.vim b/modules/general.vim index 75b9cff8..dc46f552 100644 --- a/modules/general.vim +++ b/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 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('', "g:which_key_map") nnoremap :WhichKey '' vnoremap :WhichKeyVisual '' +" Get rid of status bar when not in use +autocmd! FileType which_key +autocmd FileType which_key set laststatus=0 noshowmode noruler + \| autocmd BufLeave set laststatus=2 showmode ruler ""nnoremap :WhichKey '' ""nnoremap :WhichKey ',' -- cgit v1.2.3