Expected:
It should open the buffer normally, displaying the directory's content, just like it does when running :vsplit +edit ./a/directory/path directly.
Actual result:
It opens the buffer, but doesn't display its contents. If you hit R or move out the window and in again, then it shows the directory's content.
I'm using a nightly release of Neovim.
Steps to reproduce:
lua vim.cmd("vsplit +edit ./a/directory/path")
Expected: It should open the buffer normally, displaying the directory's content, just like it does when running
:vsplit +edit ./a/directory/path
directly.Actual result: It opens the buffer, but doesn't display its contents. If you hit R or move out the window and in again, then it shows the directory's content.