24 lines
620 B
Lua
24 lines
620 B
Lua
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?
|
|
})
|
|
|
|
|
|
|
|
|