Session utility for nvim
no more bugs with lazy
1 file changed, +1 -0
+1-0lua/sessions/init.lua
| @@ -21,6 +21,7 @@ end | ||
| 21 | 21 | -- Restore session |
| 22 | 22 | local function restore_session() |
| 23 | 23 | if vim.fn.filereadable(sessionfile) == 1 then |
| 24 | + vim.cmd("%bd") | |
| 24 | 25 | vim.cmd("source " .. vim.fn.fnameescape(sessionfile)) |
| 25 | 26 | vim.cmd("doautocmd BufReadPost") |
| 26 | 27 | end |