From 51470fbcf619e57a2fcd7ea2dad9732fd07b6820 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 5 Dec 2019 10:42:09 +0530 Subject: [PATCH] nvim: init.vim: Add vim which key --- nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 5059123..5122724 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -91,6 +91,7 @@ Plug 'purescript-contrib/purescript-vim' Plug 'mbbill/undotree' Plug 'milkypostman/vim-togglelist' Plug 'jpalardy/vim-slime' +Plug 'liuchengxu/vim-which-key' " Initialize plugin system call plug#end() @@ -321,6 +322,8 @@ nnoremap sf :call CscopeQuery("f") nnoremap si :call CscopeQuery("i") nnoremap sa :call CscopeQuery("a") +nnoremap :WhichKey '' + " --------------------------- Autocmd groups --------------------------------- augroup deopleteMaps au! @@ -510,6 +513,10 @@ let g:nvimgdb_config_override = { \ 'set_tkeymaps': "NvimGdbNoTKeymaps", \ } +let g:mapleader = "\" +let g:maplocalleader = ',' +let g:which_key_use_floating_win = 1 + " ----------------------------- Functions ------------------------------------ " For CScope and Quickfix " https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d