mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(explorer): update on cwd change
This commit is contained in:
parent
190afc1ec3
commit
8dea225209
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue