From 2c87fb26a9cb53e7875ef2d6fff2377bdbd1534a Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Thu, 14 Sep 2023 21:45:37 +0200 Subject: [PATCH] Ignore some directories from telescope live grep --- lua/plugins/config/telescope.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lua/plugins/config/telescope.lua b/lua/plugins/config/telescope.lua index e5566ae..1ac71b4 100644 --- a/lua/plugins/config/telescope.lua +++ b/lua/plugins/config/telescope.lua @@ -27,7 +27,16 @@ vim.keymap.set( vim.keymap.set( "n", "fg", function () builtin.live_grep( - { additional_args = function (_) return { "--hidden", } end, } + { + additional_args = function (_) + return { + "--hidden", + "--iglob=!.venv", + "--iglob=!vendor", + "--iglob=!.git", + } + end, + } ) end )