nvim: init.vim: Add vim which key

This commit is contained in:
Sanchayan Maity 2019-12-05 10:42:09 +05:30 committed by Sanchayan Maity
parent d1264962a9
commit 51470fbcf6

View file

@ -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 <silent> <Leader><Leader>sf :call CscopeQuery("f")<CR>
nnoremap <silent> <Leader><Leader>si :call CscopeQuery("i")<CR>
nnoremap <silent> <Leader><Leader>sa :call CscopeQuery("a")<CR>
nnoremap <silent> <Leader> :<C-U>WhichKey '<Space>'<CR>
" --------------------------- Autocmd groups ---------------------------------
augroup deopleteMaps
au!
@ -510,6 +513,10 @@ let g:nvimgdb_config_override = {
\ 'set_tkeymaps': "NvimGdbNoTKeymaps",
\ }
let g:mapleader = "\<Space>"
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