diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-24 23:00:37 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-24 23:00:37 +0200 |
commit | 4f90aed695809ddeaca46324e3b65afd0b168504 (patch) | |
tree | d866da893d15592d7e212ba6392dbc6cb35d9402 | |
parent | Added zathura config (diff) | |
download | dotfiles-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 '')
-rw-r--r-- | .config/nvim/bindings.vim | 16 | ||||
-rw-r--r-- | .config/nvim/plug.vim | 1 |
2 files changed, 11 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' 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' |