feat(explorer): update on cwd change

This commit is contained in:
Folke Lemaitre 2025-01-31 21:08:08 +01:00
parent 190afc1ec3
commit 8dea225209
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -52,6 +52,9 @@ function State.new(picker)
self:update()
end
end)
picker.list.win:on("DirChanged", function(_, ev)
self:set_cwd(vim.fs.normalize(ev.file))
end)
-- schedule initial follow
if self.opts.follow_file then
self.on_find = function()