-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
It would be great to get a more flexible config:
{
name = "rg",
keyword_length = 3,
option = {
additional_arguments = function(cwd)
if vim.fn.expand(cwd) == vim.fn.expand("~") then
return "--max-depth 6 --ignore-file ~/.config/nvim/ignore.rg"
else
local args = "--max-depth 3"
if vim.fn.filereadable(vim.fn.expand(cwd .. "/.gitignore")) == 1 then
args = args .. " --ignore-file '" .. cwd .. "/.gitignore'"
end
return args
end
end,
},
}
lukas-reineke and isaif
Metadata
Metadata
Assignees
Labels
No labels