Skip to content

Commit

Permalink
Merge pull request #390 from cameronr/main
Browse files Browse the repository at this point in the history
fix: mark more settings as optional
  • Loading branch information
cameronr authored Nov 3, 2024
2 parents 3cd531c + b6ee048 commit 542d338
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions doc/auto-session.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ SessionLens *SessionLens*
SessionControl *SessionControl*

Fields: ~
{control_dir} (string)
{control_filename} (string)
{control_dir?} (string)
{control_filename?} (string)


SessionLensMappings *SessionLensMappings*
Session Lens Mapping

Fields: ~
{delete_session} (table) mode and key for deleting a session from the picker
{alternate_session} (table) mode and key for swapping to alertnate session from the picker
{copy_session} (table) mode and key for copying a session from the picker
{delete_session?} (table) mode and key for deleting a session from the picker
{alternate_session?} (table) mode and key for swapping to alertnate session from the picker
{copy_session?} (table) mode and key for copying a session from the picker


==============================================================================
Expand Down
10 changes: 5 additions & 5 deletions lua/auto-session/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ local M = {}
---@field mappings? SessionLensMappings

---@class SessionControl
---@field control_dir string
---@field control_filename string
---@field control_dir? string
---@field control_filename? string

---Session Lens Mapping
---@class SessionLensMappings
---@field delete_session table mode and key for deleting a session from the picker
---@field alternate_session table mode and key for swapping to alertnate session from the picker
---@field copy_session table mode and key for copying a session from the picker
---@field delete_session? table mode and key for deleting a session from the picker
---@field alternate_session? table mode and key for swapping to alertnate session from the picker
---@field copy_session? table mode and key for copying a session from the picker

---@type AutoSession.Config
local defaults = {
Expand Down

0 comments on commit 542d338

Please sign in to comment.