Open Amleto opened 1 month ago
Narrowed this down a bit - all I have to do is open neogit status and then exit the status. Arrow will then report "no files yet" when opening the UI.
If I restart nvim then the UI is populated with what I expect (until I look at neogit again)
Maybe your working directory(cwd) is changed when open neogit
try :=vim.uv.cwd()
Yes, it is changed when in neogit status to the git repo root, but when neogit status buffer is closed then cwd() is the same as it was before opening neogit
Why not keep you cwd the same as git root, arrow persist files by cwd by default, you can also make it persist by git root.
Because I don't want it to be. E.g. for for working specifically within a subdir of the repo.
From what I can tell, arrow doesn't correctly handle the case where :lcd is used, followed by a buffer change - the global state needs to be refreshed on BufEnter (not only BufReadPost)?
My list(s) of saved files keeps getting cleared out - I will have 3,4,5 files in the ui one second, then the next time I open the ui the list is empty.
My lazy config is,
As you can see I will be using the default scope - I thought this should be cwd? I don't
:cd
once I'm in nvim.It's a bit inconsistent when the list disappears. I'm wondering if there is some implicit link to git commit or something? feels like things go wrong after committing some files, but not certain on that