nvim: set ripgrep as grepprg

This commit is contained in:
inkch 2024-03-12 12:25:38 +09:00
parent 01281629fa
commit fd3a54ce62

View File

@ -37,6 +37,10 @@ vim.opt.listchars = "tab:>>,trail:_,eol:$,multispace:··,extends:>,precedes:<,n
vim.opt.encoding = "utf-8" vim.opt.encoding = "utf-8"
vim.opt.fenc = "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" }} {{- if eq .chezmoi.username "root" }}
vim.opt.expandtab = false vim.opt.expandtab = false
{{- else }} {{- else }}