LazyVim.LazyVim/lua/lazyvim/plugins/util.lua

30 lines
935 B
Lua
Raw Normal View History

2023-01-01 09:56:36 +01:00
return {
-- measure startuptime
2023-01-02 09:49:49 +01:00
{
"dstein64/vim-startuptime",
cmd = "StartupTime",
config = function()
vim.g.startuptime_tries = 10
end,
},
2023-01-03 21:05:22 +01:00
2023-07-20 17:16:13 -04:00
-- 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.
2023-01-04 13:29:47 +01:00
{
"folke/persistence.nvim",
event = "BufReadPre",
2023-10-27 18:34:33 +02:00
opts = { options = vim.opt.sessionoptions:get() },
2023-01-04 13:34:29 +01:00
-- stylua: ignore
2023-01-04 13:29:47 +01:00
keys = {
2023-01-04 13:34:29 +01:00
{ "<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" },
2023-01-04 13:29:47 +01:00
},
},
2023-01-03 21:05:22 +01:00
-- library used by other plugins
{ "nvim-lua/plenary.nvim", lazy = true },
2023-01-01 09:56:36 +01:00
}