Skip to content

Commit

Permalink
fix: search user config when under nvim config path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamir committed Jan 7, 2025
1 parent 3d73f02 commit 87bb521
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/keymap/tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -103,7 +104,11 @@ local plug_map = {
:with_silent()
:with_desc("tool: Find patterns"),
["v|<leader>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()
Expand Down

0 comments on commit 87bb521

Please # to comment.