Set rg as grepprg when available

main
Ensar Sarajčić 2022-06-02 16:52:59 +02:00
parent d3657e638c
commit 3f71b3e920
1 changed files with 6 additions and 0 deletions

View File

@ -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