From bc662c982a35e25af77eafd6fe718fc8a4ce5191 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 8 Apr 2022 12:55:09 +0200 Subject: nvim: modernize Ag to Rg I usually use ripgrep anyway. --- neovim/.config/nvim/init.vim | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 1dbc2d6..1f5e149 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -65,7 +65,7 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " Code and files fuzzy finder -Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } +Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'neomake/neomake' @@ -99,10 +99,6 @@ Plug 'jeetsukumaran/vim-indentwise' Plug 'sheerun/vim-polyglot' let g:polyglot_disabled = ['latex'] -" Ack code search (requires ack installed in the system) -Plug 'mileszs/ack.vim' -" TODO is there a way to prevent the progress which hides the editor? - " Paint css colors with the real color Plug 'lilydjwg/colorizer' " TODO is there a better option for neovim? @@ -329,8 +325,8 @@ let NERDTreeIgnore = ['\.pyc$', '\.pyo$'] nmap ,e :Files " buffer search nmap ,b :Buffers -" Ag search -nmap ,a :Ag +" Ripgrep search +nmap ,a :Rg " tags (symbols) in current file finder mapping nmap ,g :BTag " tags (symbols) in all files finder mapping @@ -356,12 +352,6 @@ nmap ,c :Commands "nmap ,wc :call CtrlPWithSearchText(expand(''), 'CmdPalette') -" Ack.vim ------------------------------ - -" mappings -nmap ,r :Ack -nmap ,wr :Ack - " Window Chooser ------------------------------ " mapping -- cgit v1.2.3