18 lines
626 B
Diff
18 lines
626 B
Diff
|
See:
|
||
|
|
||
|
- https://github.com/ibhagwan/fzf-lua/issues/678
|
||
|
- https://github.com/ibhagwan/fzf-lua/pull/679
|
||
|
|
||
|
diff --git a/lua/fzf-lua/path.lua b/lua/fzf-lua/path.lua
|
||
|
index ff5a79b..22b3923 100644
|
||
|
--- a/lua/fzf-lua/path.lua
|
||
|
+++ b/lua/fzf-lua/path.lua
|
||
|
@@ -234,6 +234,7 @@ function M.entry_to_file(entry, opts, force_uri)
|
||
|
if cwd and #cwd > 0 and not isURI and
|
||
|
not M.starts_with_separator(stripped) then
|
||
|
stripped = M.join({ cwd, stripped })
|
||
|
+ stripped = M.relative(stripped, vim.fn.getcwd())
|
||
|
end
|
||
|
-- #336: force LSP jumps using 'vim.lsp.util.jump_to_location'
|
||
|
-- so that LSP entries are added to the tag stack
|