From 2aadc0d652a55609ea203eacd37161185a7ac883 Mon Sep 17 00:00:00 2001 From: Cameron Ring Date: Sat, 2 Nov 2024 09:30:06 -0700 Subject: [PATCH] fix: mark more settings as optional So it won't generate warnings if you only set some of them --- lua/auto-session/config.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/auto-session/config.lua b/lua/auto-session/config.lua index 35c2f75..4ec6a3f 100644 --- a/lua/auto-session/config.lua +++ b/lua/auto-session/config.lua @@ -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 = {