Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mark more settings as optional #390

Merged
merged 2 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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