diff --git a/lua/keymap/tool.lua b/lua/keymap/tool.lua index f21bdfa5e..4a15c68e3 100644 --- a/lua/keymap/tool.lua +++ b/lua/keymap/tool.lua @@ -3,6 +3,7 @@ local map_cr = bind.map_cr local map_cu = bind.map_cu local map_cmd = bind.map_cmd local map_callback = bind.map_callback +local vim_path = require("core.global").vim_path require("keymap.helpers") local plug_map = { @@ -103,7 +104,11 @@ local plug_map = { :with_silent() :with_desc("tool: Find patterns"), ["v|fs"] = map_callback(function() - require("telescope-live-grep-args.shortcuts").grep_visual_selection() + local opts = {} + if vim.fn.getcwd() == vim_path then + opts["additional_args"] = { "--no-ignore" } + end + require("telescope-live-grep-args.shortcuts").grep_visual_selection(opts) end) :with_noremap() :with_silent()