chore: misc updates
parent
7d2a0ac661
commit
dafb7a9e43
|
|
@ -5,6 +5,8 @@
|
|||
<h1 align="center">Persisted.nvim</h1>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/olimorris/persisted.nvim/stargazers"><img src="https://img.shields.io/github/stars/olimorris/persisted.nvim?color=c678dd&logoColor=e06c75&style=for-the-badge"></a>
|
||||
<a href="https://github.com/olimorris/persisted.nvim/issues"><img src="https://img.shields.io/github/issues/olimorris/persisted.nvim?color=%23d19a66&style=for-the-badge"></a>
|
||||
<a href="https://github.com/olimorris/persisted.nvim/blob/main/LICENSE"><img src="https://img.shields.io/github/license/olimorris/persisted.nvim?style=for-the-badge"></a>
|
||||
<a href="https://github.com/olimorris/persisted.nvim/actions/workflows/ci.yml"><img src="https://img.shields.io/github/workflow/status/olimorris/persisted.nvim/Tests?label=tests&style=for-the-badge"></a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -82,10 +82,12 @@ function M.load_session(session, before_callback, after_callback)
|
|||
if type(before_callback) == "function" then
|
||||
before_callback()
|
||||
end
|
||||
|
||||
local ok, result = pcall(vim.cmd, "source " .. e(session))
|
||||
if not ok then
|
||||
return M.echoerr("Error loading the session! ", result)
|
||||
end
|
||||
|
||||
if type(after_callback) == "function" then
|
||||
after_callback()
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue