nvim: init.vim: Add vim which key
This commit is contained in:
parent
d1264962a9
commit
51470fbcf6
1 changed files with 7 additions and 0 deletions
|
@ -91,6 +91,7 @@ Plug 'purescript-contrib/purescript-vim'
|
||||||
Plug 'mbbill/undotree'
|
Plug 'mbbill/undotree'
|
||||||
Plug 'milkypostman/vim-togglelist'
|
Plug 'milkypostman/vim-togglelist'
|
||||||
Plug 'jpalardy/vim-slime'
|
Plug 'jpalardy/vim-slime'
|
||||||
|
Plug 'liuchengxu/vim-which-key'
|
||||||
|
|
||||||
" Initialize plugin system
|
" Initialize plugin system
|
||||||
call plug#end()
|
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>si :call CscopeQuery("i")<CR>
|
||||||
nnoremap <silent> <Leader><Leader>sa :call CscopeQuery("a")<CR>
|
nnoremap <silent> <Leader><Leader>sa :call CscopeQuery("a")<CR>
|
||||||
|
|
||||||
|
nnoremap <silent> <Leader> :<C-U>WhichKey '<Space>'<CR>
|
||||||
|
|
||||||
" --------------------------- Autocmd groups ---------------------------------
|
" --------------------------- Autocmd groups ---------------------------------
|
||||||
augroup deopleteMaps
|
augroup deopleteMaps
|
||||||
au!
|
au!
|
||||||
|
@ -510,6 +513,10 @@ let g:nvimgdb_config_override = {
|
||||||
\ 'set_tkeymaps': "NvimGdbNoTKeymaps",
|
\ 'set_tkeymaps': "NvimGdbNoTKeymaps",
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
let g:mapleader = "\<Space>"
|
||||||
|
let g:maplocalleader = ','
|
||||||
|
let g:which_key_use_floating_win = 1
|
||||||
|
|
||||||
" ----------------------------- Functions ------------------------------------
|
" ----------------------------- Functions ------------------------------------
|
||||||
" For CScope and Quickfix
|
" For CScope and Quickfix
|
||||||
" https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d
|
" https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d
|
||||||
|
|
Loading…
Reference in a new issue