Closed Bitals closed 4 months ago
As can be seen on the screenshots, not only treesitter
is missing, but basically half of the plugins don't work in this scenario. For some reason session-manager
(I assume) prevents nvim from loading anything else when it is executed on event VimEnter
Can't reproduce on my side.
@Shatur with an autocmd
on VimEnter
?
Yes, autoloading happens on VimEnter
by default:
https://github.com/Shatur/neovim-session-manager/blob/35c154a4b904cbe2aa7acce00a8c1c54a8831780/plugin/session_manager.lua#L12
@Shatur huh, right, sorry. But this way doesn't work for my workflow, but that is a confirmed me problem now.
Check if some other plugin causes it.
Bug description When I call
load_last_session
from anautocmd
, I have no syntax highlighting in the first opened file for some reason. If I later open a file in any other way, including inside this session, everything works. If I specify a file as an argument when opening, everything works. If I load another session and then reload the initial session, everything works. Just not from this function for some reason.Config: https://github.com/Bitals/neovim-config/blob/b628864a8fe89b1be6183a4552af1f768f487837/init.lua#L54
Steps to reproduce
Expected behavior Syntax highlighting works
Screenshots No highlights: Yes highlights:
Environment
35c154a
Additional context Terminal: Alacritty