diff --git a/config/nvim/lua/fschauen/options.lua b/config/nvim/lua/fschauen/options.lua index 555e7ec..a880ec1 100644 --- a/config/nvim/lua/fschauen/options.lua +++ b/config/nvim/lua/fschauen/options.lua @@ -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