Files
dotfiles/nvim/config/presisted.lua
2025-09-07 14:42:33 +01:00

22 lines
578 B
Lua

require("persisted").setup({
save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"),
telescope = {
mappings = { -- Mappings for managing sessions in Telescope
copy_session = "<C-c>",
change_branch = "<C-b>",
delete_session = "<C-d>",
},
icons = { -- icons displayed in the Telescope picker
selected = "",
dir = "",
branch = "",
},
},
follow_cwd = true, -- Change the session file to match any change in the cwd?
use_git_branch = true, -- Include the git branch in the session file name?
})