nvim: init: Override default grepprg

When setting grepprg to ripgrep, neovim passes -uuu which disables
ripgrep's default filtering which also ends up searching in binary
files which is not what we want. It also ignores our ripgreprc and
.ignore we have setup. neovim tries to match behaviour of standard
grep which we do not care about.

The default behaviour becomes a lot confusing when we start getting
results from clangd cache or search index.
This commit is contained in:
Sanchayan Maity 2024-07-26 15:50:58 +05:30
parent 5fd75b0fbd
commit 91d160e157
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -35,6 +35,7 @@ vim.o.signcolumn = "auto:1-2"
vim.o.spelllang = "en_gb" vim.o.spelllang = "en_gb"
vim.o.spelloptions = "camel,noplainbuffer" vim.o.spelloptions = "camel,noplainbuffer"
vim.o.spell = true vim.o.spell = true
vim.o.grepprg = "rg --vimgrep"
-- Disable providers we do not give a shit about -- Disable providers we do not give a shit about
vim.g.loaded_python3_provider = 0 vim.g.loaded_python3_provider = 0