-
["ctrl-u"] = function(_, opts)
local parent = vim.fn.fnamemodify(opts.cwd, ":h")
print("Parent: ".. parent)
require("fzf-lua").files({ cwd = parent })
end I tried making an action so i can move up the directory tree. However this only works one time. If i try to press multiple times it stops. I am thus not able to retrieve the correct working directory |
Beta Was this translation helpful? Give feedback.
Answered by
danischn
Jun 3, 2025
Replies: 1 comment
-
["ctrl-u"] = function(_, opts)
local parent = vim.fn.fnamemodify(opts.cwd or vim.uv.cwd(), ":h")
require("fzf-lua").files({ cwd = parent })
end This works. Thanks for the great plugin! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ibhagwan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works.
Thanks for the great plugin!