Restore session with empty file, display Dashboard
AbaoFromCUG opened this issue · comments
Abao commented
Describe the bug
When restore a session with empty file opened, will display Dashboard, and display a error
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:104: no parser for 'dashboard' language, see :help treesitter-parsers
To Reproduce
Steps to reproduce the behavior:
- touch empty file
touch test.norg
- open nvim
vim
- open empty file
:e test.norg
, but don't input anything - save session
:mksession test.session
- quit nvim
:q
- restore sesion
vim -S test.session
Expected behavior
don't show dashboard and show opened empty file correctly
Related code
plugin/dashboard.lua