Set rg as grepprg when available
parent
d3657e638c
commit
3f71b3e920
|
@ -0,0 +1,6 @@
|
|||
-- Vim grep configuration
|
||||
|
||||
if vim.fn.executable("rg") == 1 then
|
||||
vim.o.grepprg = "rg --vimgrep --hidden --glob ‘!.git’"
|
||||
vim.o.grepformat = vim.o.grepformat .. "," .. "%f:%l:%c:%m"
|
||||
end
|
Loading…
Reference in New Issue