diff --git a/dot_config/nvim/lua/core/options.lua.tmpl b/dot_config/nvim/lua/core/options.lua.tmpl index dd46984..0a3fa9f 100644 --- a/dot_config/nvim/lua/core/options.lua.tmpl +++ b/dot_config/nvim/lua/core/options.lua.tmpl @@ -37,6 +37,10 @@ vim.opt.listchars = "tab:>>,trail:_,eol:$,multispace:ยทยท,extends:>,precedes:<,n vim.opt.encoding = "utf-8" vim.opt.fenc = "utf-8" +if vim.fn.executable('rg') then + vim.opt.grepprg = 'rg --vimgrep --smart-case --hidden' +end + {{- if eq .chezmoi.username "root" }} vim.opt.expandtab = false {{- else }}