fix: #11 lsp not working with autoload

main
olimorris 2022-05-03 21:51:16 +01:00
parent f5b3d04597
commit 32610c4de6
1 changed files with 2 additions and 1 deletions

View File

@ -108,8 +108,9 @@ function M.load(opt)
if session and vim.fn.filereadable(session) ~= 0 then
local ok, result = pcall(vim.cmd, "source " .. e(session))
if not ok then
utils.echoerr("Error loading the session! ", result)
return utils.echoerr("Error loading the session! ", result)
end
vim.cmd("edit")
end
if config.options.autosave and (allow_dir() and not ignore_dir()) then