nvim: use rg
for :grep if installed
This commit is contained in:
parent
c44785f3a7
commit
e814da54a9
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ M.setup = function()
|
|||
|
||||
local o = vim.opt
|
||||
|
||||
-- Use `rg` for :grep if installed.
|
||||
if vim.fn.executable("rg") == 1 then
|
||||
o.grepprg = "rg --vimgrep --no-heading --smart-case"
|
||||
o.grepformat = "%f:%l:%c:%m,%f:%l:%m"
|
||||
end
|
||||
|
||||
-- General
|
||||
o.belloff = "all" -- never ring bells
|
||||
o.hidden = true -- hide abandoned buffers
|
||||
|
|
Loading…
Add table
Reference in a new issue