feat(nvim): add new keymaps for lazy.nvim operations such as sync, check for updates and update all plugin
This commit is contained in:
1 parent
f95a172c30
commit
88b583a58e
5 files changed
+68
-14
No files matched your search
@@ -0,0 +1,33 @@
|
||||
local isActive = true
|
||||
local p = require("persistence")
|
||||
|
||||
return {
|
||||
"folke/persistence.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>qs",
|
||||
function()
|
||||
p.save()
|
||||
vim.notify("Session saved", vim.log.levels.INFO, { title = "Persistence" })
|
||||
end,
|
||||
desc = "Save Session",
|
||||
},
|
||||
-- stylua: ignore start
|
||||
{ "<leader>qr", function() require("persistence").load({ last = true }) end, desc = "Restore Last Session" },
|
||||
{ "<leader>qt",
|
||||
function()
|
||||
if isActive then
|
||||
p.stop()
|
||||
isActive = false
|
||||
vim.notify("Stopped session recording", vim.log.levels.INFO, { title = "Persistence" })
|
||||
else
|
||||
p.start()
|
||||
isActive = true
|
||||
vim.notify("Started session recording", vim.log.levels.INFO, { title = "Persistence" })
|
||||
end
|
||||
end,
|
||||
desc = "Toggle Current Session Recording"
|
||||
},
|
||||
-- stylua: ignore end
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user