mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 03:08:13 +00:00
fix(explorer): always refresh state when opening the picker since changes might have happened that were not monitored
This commit is contained in:
parent
09349ecd44
commit
c61114fb32
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ function State.new(picker)
|
|||
return v and not v.closed and v or nil
|
||||
end
|
||||
|
||||
Tree:refresh(picker:cwd())
|
||||
|
||||
local buf = vim.api.nvim_win_get_buf(picker.main)
|
||||
local buf_file = vim.fs.normalize(vim.api.nvim_buf_get_name(buf))
|
||||
if uv.fs_stat(buf_file) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue