After starting nvim, the first opened file always shows blank, the second will be back to normal. This issue is out of nowhere.
OS:Arch
nvim: 0.7.2
terminal: kitty
Asked
Active
Viewed 788 times
1 Answers
1
I've found that this issue is caused by wrong argument in nvim.packer.
Before I set event="BufReadCmd"for lazy loading, then I changed to event="BufAdd".
I guess it's possible that loading package interrupts reading into buffer. Everything is back to noraml now.
Luxsis
- 11
- 2
-
1Read
:help BufReadCmd—it's supposed to the do the reading of the file. That would explain why you got a blank file. – D. Ben Knoble Jul 15 '22 at 16:20 -
nvim -u NONE -i NONE? – Vivian De Smedt Jul 15 '22 at 13:36init.vim/init.luawhereever it readsvimrc– Rich Jul 15 '22 at 14:32