Skip to content

Commit

Permalink
Merge pull request #283 from rmagatti/fix-linter-annoyance
Browse files Browse the repository at this point in the history
Set defaultConf values to nullable
  • Loading branch information
rmagatti authored Mar 31, 2024
2 parents 68b5a30 + bc1fb56 commit b365b3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions doc/auto-session.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
6 changes: 3 additions & 3 deletions lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b365b3e

Please sign in to comment.