mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 18:38:00 +00:00
[neovim] Autostore session on VimExit event
This commit is contained in:
parent
21e220944f
commit
b6dd8032be
@ -33,3 +33,11 @@ vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Autostore session on VimExit
|
||||||
|
local Session = require("projections.session")
|
||||||
|
vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
|
||||||
|
callback = function()
|
||||||
|
Session.store(vim.loop.cwd())
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user