From 4f90aed695809ddeaca46324e3b65afd0b168504 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 24 Oct 2020 23:00:37 +0200 Subject: New grep vim plugin --- .config/nvim/bindings.vim | 16 ++++++++++------ .config/nvim/plug.vim | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) (limited to '.config/nvim') 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 3 :vsp nnoremap 0 q nnoremap :WhichKey '\' nnoremap b :Buffers -nnoremap d :FloatermNew vifm +nnoremap d :w:bp:bd # nnoremap e :Files -nnoremap F :Rg -nnoremap g :Ag +nnoremap ga :Ag +nnoremap gg :Grep +nnoremap gr :Rg nnoremap G :FloatermNew lazygit nnoremap h :Startify nnoremap k :w:bp:bd # @@ -29,10 +30,13 @@ nnoremap v :FloatermNew vifm nnoremap w :w nnoremap x :w:bp:bd # 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' diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim index e7e8850..20a925f 100644 --- a/.config/nvim/plug.vim +++ b/.config/nvim/plug.vim @@ -24,6 +24,7 @@ Plug 'tpope/vim-speeddating' Plug 'vifm/vifm.vim' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' +Plug 'vim-scripts/grep.vim' Plug 'vim-utils/vim-man' Plug 'voldikss/fzf-floaterm' Plug 'voldikss/vim-floaterm' -- cgit v1.2.3