mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-22 20:28:36 +01:00
12 lines
539 B
Lua
12 lines
539 B
Lua
local auto_session = require("auto-session")
|
|
|
|
auto_session.setup({
|
|
auto_restore_enabled = false,
|
|
auto_session_suppress_dirs = { "~/", "~/Dev/", "~/Downloads", "~/Documents", "~/Desktop/" },
|
|
})
|
|
|
|
local keymap = vim.keymap
|
|
|
|
keymap.set("n", "<leader>wr", "<cmd>SessionRestore<CR>", { desc = "Restore session for cwd" }) -- restore last workspace session for current directory
|
|
keymap.set("n", "<leader>ws", "<cmd>SessionSave<CR>", { desc = "Save session for auto session root dir" }) -- save workspace session for current working directory
|