Files
dotfiles/nvim/config/presisted.lua
doloro 2e94f6dac3 meow
2025-09-22 20:55:16 +00:00

24 lines
620 B
Lua
Executable File

require("persisted").setup({
save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"),
autoload = false,
autosave = true,
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?
})