feat: add session autosave functionality
This commit is contained in:
1 parent
dd0fc8a1d6
commit
07f21fd441
1 file changed
+13
@@ -206,6 +206,19 @@ return {
|
|||||||
"AstroNvim/astrocore",
|
"AstroNvim/astrocore",
|
||||||
---@type AstroCoreOpts
|
---@type AstroCoreOpts
|
||||||
opts = {
|
opts = {
|
||||||
|
sessions = {
|
||||||
|
-- Configure auto saving
|
||||||
|
autosave = {
|
||||||
|
last = true, -- auto save last session
|
||||||
|
cwd = true, -- auto save session for each working directory
|
||||||
|
},
|
||||||
|
-- Patterns to ignore when saving sessions
|
||||||
|
ignore = {
|
||||||
|
dirs = {}, -- working directories to ignore sessions in
|
||||||
|
filetypes = { "gitcommit", "gitrebase" }, -- filetypes to ignore sessions
|
||||||
|
buftypes = {}, -- buffer types to ignore sessions
|
||||||
|
},
|
||||||
|
},
|
||||||
rooter = {
|
rooter = {
|
||||||
-- list of detectors in order of prevalence, elements can be:
|
-- list of detectors in order of prevalence, elements can be:
|
||||||
-- "lsp" : lsp detection
|
-- "lsp" : lsp detection
|
||||||
|
|||||||
Reference in new issue
Block a user