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:
parent
5fd75b0fbd
commit
91d160e157
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue