fix: use vim.schedule to load session

Auto loading a session often causes weird treesitter and LSP issues. Using him schedule resolves this
main
Oli M 2022-06-06 10:30:11 -07:00 committed by GitHub
commit d9346bf310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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