mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 09:50:14 +08:00
nvim: which-key for Doom like experience
This commit is contained in:
parent
fb8c05d2c1
commit
126814bcb5
1 changed files with 7 additions and 0 deletions
|
|
@ -47,6 +47,7 @@
|
|||
|
||||
telescope-nvim
|
||||
telescope-zoxide
|
||||
vim-which-key
|
||||
|
||||
# Buffer tabs
|
||||
bufferline-nvim
|
||||
|
|
@ -71,6 +72,12 @@
|
|||
" Use spave instead of \ as leader key, like doom-emacs
|
||||
map <Space> <Leader>
|
||||
|
||||
" which-key
|
||||
let g:mapleader = "\<Space>"
|
||||
let g:maplocalleader = ','
|
||||
nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
|
||||
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
|
||||
|
||||
" telescope
|
||||
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue