Commit 851fc38
committed
fix: add cwd to fzf-lua config for proper path resolution
fzf-lua's builtin previewer uses opts.cwd to resolve relative paths.
Without this, the previewer cannot find files and shows 'Unable to stat
file' errors even though the paths are correct.
From fzf-lua's entry_to_file():
if cwd and #cwd > 0 and not isURI and not M.is_absolute(stripped) then
stripped = M.join({ cwd, stripped })
end
This fix ensures relative paths like 'lua/opencode/ui/highlight.lua:37:'
are properly resolved by prepending the cwd.1 parent bdaf9a1 commit 851fc38
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
0 commit comments