21 lines
775 B
Lua
21 lines
775 B
Lua
return {
|
|
|
|
-- Session management. This saves your session in the background,
|
|
-- keeping track of open buffers, window arrangement, and more.
|
|
-- You can restore sessions when returning through the dashboard.
|
|
{
|
|
"folke/persistence.nvim",
|
|
event = "BufReadPre",
|
|
opts = { options = vim.opt.sessionoptions:get() },
|
|
-- stylua: ignore
|
|
keys = {
|
|
{ "<leader>qs", function() require("persistence").load() end, desc = "Restore Session" },
|
|
{ "<leader>ql", function() require("persistence").load({ last = true }) end, desc = "Restore Last Session" },
|
|
{ "<leader>qd", function() require("persistence").stop() end, desc = "Don't Save Current Session" },
|
|
},
|
|
},
|
|
|
|
-- library used by other plugins
|
|
{ "nvim-lua/plenary.nvim", lazy = true },
|
|
}
|