From 05a30843cefbda746e410897f2616f8e09cdf5e8 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 30 Apr 2023 19:56:33 -0400 Subject: [PATCH] nvim: add ripgrep support --- programs | 1 + src/.config/nvim/init.vim | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/programs b/programs index 334b5ad..f5b5df2 100644 --- a/programs +++ b/programs @@ -35,3 +35,4 @@ bear xsel xwallpaper xss-lock +ripgrep diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index 5a23afd..351af72 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -220,14 +220,24 @@ if $SYSTEM_PROFILE == "DEFAULT" set foldmethod=expr set foldexpr=nvim_treesitter#foldexpr() "autocmd BufEnter * normal zR + + " typst filetype support + Plug 'kaarmu/typst.vim' + + " project-wide searching + Plug 'mileszs/ack.vim' + " close quickfix list after pressing enter + let g:ack_autoclose = 1 + " Ack! does not jump to first result + nnoremap / :Ack! + " use ripgrep + let g:ackprg = 'rg --vimgrep --smart-case' endif Plug 'axieax/urlview.nvim' Plug 'ggandor/leap.nvim' -Plug 'kaarmu/typst.vim' - call plug#end() if $SYSTEM_PROFILE == "DEFAULT"