Ignore some directories from telescope live grep
This commit is contained in:
@@ -27,7 +27,16 @@ vim.keymap.set(
|
|||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
"n", "<leader>fg", function ()
|
"n", "<leader>fg", function ()
|
||||||
builtin.live_grep(
|
builtin.live_grep(
|
||||||
{ additional_args = function (_) return { "--hidden", } end, }
|
{
|
||||||
|
additional_args = function (_)
|
||||||
|
return {
|
||||||
|
"--hidden",
|
||||||
|
"--iglob=!.venv",
|
||||||
|
"--iglob=!vendor",
|
||||||
|
"--iglob=!.git",
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user