Skip to content

Commit 3746d5e

Browse files
committed
fix(tags): default cwd to tag parent (closes #1683)
1 parent 74f9482 commit 3746d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/providers/tags.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ local function tags(opts)
116116
if M._TAGS2CWD[opts._ctags_file] then
117117
opts.cwd = opts.cwd or M._TAGS2CWD[opts._ctags_file]
118118
else
119-
opts.cwd = opts.cwd or get_ctags_cwd(opts._ctags_file) or uv.cwd()
119+
opts.cwd = opts.cwd or get_ctags_cwd(opts._ctags_file) or path.parent(opts.ctags_file)
120120
M._TAGS2CWD[opts._ctags_file] = opts.cwd
121121
end
122122
end

0 commit comments

Comments
 (0)