Skip to content

Commit

Permalink
Merge pull request #289 from rmagatti/fix-more-linting
Browse files Browse the repository at this point in the history
Fix more linting
  • Loading branch information
rmagatti authored Apr 14, 2024
2 parents 64dc86e + 0385a63 commit e2c5fb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions doc/auto-session.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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
{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
Expand All @@ -11,7 +11,7 @@ defaultConf *defaultConf*
{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
{auto_session_use_git_branch?} (boolean) Include git branch name in session name to differentiate between sessions for different git branches


luaOnlyConf *luaOnlyConf*
Expand All @@ -21,6 +21,7 @@ luaOnlyConf *luaOnlyConf*
{cwd_change_handling} (CwdChangeHandling)
{bypass_session_save_file_types?} (table) List of file types to bypass auto save when the only buffer open is one of the file types listed
{silent_restore} (boolean) Whether to restore sessions silently or not
{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


CwdChangeHandling *CwdChangeHandling*
Expand Down
5 changes: 3 additions & 2 deletions lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ 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 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
Expand All @@ -43,7 +43,7 @@ end
---@field auto_restore_enabled? boolean Enables/disables auto restoring session
---@field auto_session_suppress_dirs? table Suppress auto session for directories
---@field auto_session_allowed_dirs? table Allow auto session for directories, if empty then all directories are allowed except for suppressed ones
---@field auto_session_use_git_branch boolean|nil Include git branch name in session name to differentiate between sessions for different git branches
---@field auto_session_use_git_branch? boolean Include git branch name in session name to differentiate between sessions for different git branches

---Default config for auto session
---@type defaultConf
Expand All @@ -65,6 +65,7 @@ local defaultConf = {
---@field cwd_change_handling CwdChangeHandling
---@field bypass_session_save_file_types? table List of file types to bypass auto save when the only buffer open is one of the file types listed
---@field silent_restore boolean Whether to restore sessions silently or not
---@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
local luaOnlyConf = {
bypass_session_save_file_types = nil, -- Bypass auto save when only buffer open is one of these file types
---CWD Change Handling Config
Expand Down

0 comments on commit e2c5fb8

Please sign in to comment.