diff --git a/doc/auto-session.txt b/doc/auto-session.txt index 458aded..26ed5a1 100644 --- a/doc/auto-session.txt +++ b/doc/auto-session.txt @@ -2,16 +2,16 @@ defaultConf *defaultConf* table default config for auto session Fields: ~ - {log_level} (string|integer) "debug", "info", "warn", "error" or vim.log.levels.DEBUG, vim.log.levels.INFO, vim.log.levels.WARN, vim.log.levels.ERROR - {auto_session_enable_last_session} (boolean) - {auto_session_root_dir} (string) root directory for session files, by default is `vim.fn.stdpath('data')/sessions/` - {auto_session_enabled} (boolean) enable auto session - {auto_session_create_enabled} (boolean|nil) Enables/disables auto creating new sessions - {auto_save_enabled?} (boolean) Enables/disables auto saving session - {auto_restore_enabled?} (boolean) Enables/disables auto restoring session - {auto_session_suppress_dirs?} (table) Suppress auto session for directories - {auto_session_allowed_dirs?} (table) Allow auto session for directories, if empty then all directories are allowed except for suppressed ones - {auto_session_use_git_branch} (boolean|nil) Include git branch name in session name to differentiate between sessions for different git branches + {log_level} (string|integer) "debug", "info", "warn", "error" or vim.log.levels.DEBUG, vim.log.levels.INFO, vim.log.levels.WARN, vim.log.levels.ERROR + {auto_session_enable_last_session?} (boolean) + {auto_session_root_dir?} (string) root directory for session files, by default is `vim.fn.stdpath('data')/sessions/` + {auto_session_enabled?} (boolean) enable auto session + {auto_session_create_enabled} (boolean|nil) Enables/disables auto creating new sessions + {auto_save_enabled?} (boolean) Enables/disables auto saving session + {auto_restore_enabled?} (boolean) Enables/disables auto restoring session + {auto_session_suppress_dirs?} (table) Suppress auto session for directories + {auto_session_allowed_dirs?} (table) Allow auto session for directories, if empty then all directories are allowed except for suppressed ones + {auto_session_use_git_branch} (boolean|nil) Include git branch name in session name to differentiate between sessions for different git branches luaOnlyConf *luaOnlyConf* diff --git a/lua/auto-session/init.lua b/lua/auto-session/init.lua index f30c622..ce10a6c 100644 --- a/lua/auto-session/init.lua +++ b/lua/auto-session/init.lua @@ -35,9 +35,9 @@ end ---table default config for auto session ---@class defaultConf ---@field log_level string|integer "debug", "info", "warn", "error" or vim.log.levels.DEBUG, vim.log.levels.INFO, vim.log.levels.WARN, vim.log.levels.ERROR ----@field auto_session_enable_last_session boolean ----@field auto_session_root_dir string root directory for session files, by default is `vim.fn.stdpath('data')/sessions/` ----@field auto_session_enabled boolean enable auto session +---@field auto_session_enable_last_session? boolean +---@field auto_session_root_dir? string root directory for session files, by default is `vim.fn.stdpath('data')/sessions/` +---@field auto_session_enabled? boolean enable auto session ---@field auto_session_create_enabled boolean|nil Enables/disables auto creating new sessions ---@field auto_save_enabled? boolean Enables/disables auto saving session ---@field auto_restore_enabled? boolean Enables/disables auto restoring session