fix: use vim.schedule to load session
Auto loading a session often causes weird treesitter and LSP issues. Using him schedule resolves thismain
commit
d9346bf310
|
|
@ -87,7 +87,7 @@ function M.setup(opts)
|
|||
config.setup(opts)
|
||||
setup_commands()
|
||||
if config.options.autoload and (allow_dir() and not ignore_dir()) and vim.fn.argc() == 0 then
|
||||
M.load()
|
||||
vim.schedule(M.load)
|
||||
end
|
||||
if
|
||||
config.options.autosave
|
||||
|
|
|
|||
Loading…
Reference in New Issue