summaryrefslogtreecommitdiffstats
path: root/.config/nvim/bindings.vim
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-24 23:00:37 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-24 23:00:37 +0200
commit4f90aed695809ddeaca46324e3b65afd0b168504 (patch)
treed866da893d15592d7e212ba6392dbc6cb35d9402 /.config/nvim/bindings.vim
parentAdded zathura config (diff)
downloaddotfiles-bsd-4f90aed695809ddeaca46324e3b65afd0b168504.tar.gz
dotfiles-bsd-4f90aed695809ddeaca46324e3b65afd0b168504.tar.bz2
dotfiles-bsd-4f90aed695809ddeaca46324e3b65afd0b168504.tar.xz
dotfiles-bsd-4f90aed695809ddeaca46324e3b65afd0b168504.tar.zst
dotfiles-bsd-4f90aed695809ddeaca46324e3b65afd0b168504.zip
New grep vim plugin
Diffstat (limited to '.config/nvim/bindings.vim')
-rw-r--r--.config/nvim/bindings.vim16
1 files changed, 10 insertions, 6 deletions
diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim
index e6779e0..4d19ad6 100644
--- a/.config/nvim/bindings.vim
+++ b/.config/nvim/bindings.vim
@@ -17,10 +17,11 @@ nnoremap <C-x>3 :vsp<CR>
nnoremap <C-x>0 <C-w>q
nnoremap <silent> <leader> :WhichKey '\'<CR>
nnoremap <silent> <leader>b :Buffers<CR>
-nnoremap <silent> <leader>d :FloatermNew vifm<CR>
+nnoremap <leader>d :w<CR>:bp<CR>:bd #<CR>
nnoremap <silent> <leader>e :Files<CR>
-nnoremap <silent> <leader>F :Rg<CR>
-nnoremap <silent> <leader>g :Ag<CR>
+nnoremap <silent> <leader>ga :Ag<CR>
+nnoremap <leader>gg :Grep<Space>
+nnoremap <silent> <leader>gr :Rg<CR>
nnoremap <silent> <leader>G :FloatermNew lazygit<CR>
nnoremap <silent> <leader>h :Startify<CR>
nnoremap <leader>k :w<CR>:bp<CR>:bd #<CR>
@@ -29,10 +30,13 @@ nnoremap <silent> <leader>v :FloatermNew vifm<CR>
nnoremap <leader>w :w<CR>
nnoremap <leader>x :w<CR>:bp<CR>:bd #<CR>
let g:which_key_map.b = 'buffers'
-let g:which_key_map.d = 'vifm'
+let g:which_key_map.c = '+nerd-commenter'
+let g:which_key_map.d = 'write-and-close-buffer'
let g:which_key_map.e = 'files'
-let g:which_key_map.F = 'ripgrep'
-let g:which_key_map.g = 'the_silver_searcher'
+let g:which_key_map.g = '+grep'
+let g:which_key_map.g.a = 'the_silver_searcher'
+let g:which_key_map.g.g = 'grep'
+let g:which_key_map.g.r = 'ripgrep'
let g:which_key_map.G = 'lazygit'
let g:which_key_map.h = 'startify'
let g:which_key_map.k = 'write-and-close-buffer'