From e5bd814592f570a032d78174ef935a7290ca7b45 Mon Sep 17 00:00:00 2001 From: Cameron Ring Date: Wed, 21 Aug 2024 23:30:26 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20no=20=F0=9F=90=8D!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/auto-session/health.lua | 6 +++--- lua/auto-session/lib.lua | 2 +- lua/auto-session/session-lens/init.lua | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/auto-session/health.lua b/lua/auto-session/health.lua index 83665eb..6c65537 100644 --- a/lua/auto-session/health.lua +++ b/lua/auto-session/health.lua @@ -15,7 +15,7 @@ local error = vim.health.error or vim.health.report_error ---@diagnostic disable-next-line: deprecated local info = vim.health.info or vim.health.report_info -local function check_sesssion_options() +local function check_session_options() if not vim.tbl_contains(vim.split(vim.o.sessionoptions, ","), "localoptions") then warn( "`vim.o.sessionoptions` should contain 'localoptions' to make sure\nfiletype and highlighting work correctly after a session is restored.\n\n" @@ -29,12 +29,12 @@ end function M.check() start "vim options" - check_sesssion_options() + check_session_options() start "General Info" info("Session directory: " .. AutoSession.get_root_dir()) info("Current session: " .. Lib.current_session_name()) - info("Current sesssion file: " .. vim.v.this_session) + info("Current session file: " .. vim.v.this_session) start "Config" info("Here's the config using the new option names\n" .. vim.inspect(Config.modernized_config())) diff --git a/lua/auto-session/lib.lua b/lua/auto-session/lib.lua index 669ab0a..732bf9c 100644 --- a/lua/auto-session/lib.lua +++ b/lua/auto-session/lib.lua @@ -343,7 +343,7 @@ end ---@param escaped_session_name string The session file name. It should not have a path component ---@return table The session name components function Lib.get_session_display_name_as_table(escaped_session_name) - -- sesssion name contains a |, split on that and get git branch + -- session name contains a |, split on that and get git branch local session_name = Lib.escaped_session_name_to_session_name(escaped_session_name) local splits = vim.split(session_name, "|") diff --git a/lua/auto-session/session-lens/init.lua b/lua/auto-session/session-lens/init.lua index 111f83b..beebff4 100644 --- a/lua/auto-session/session-lens/init.lua +++ b/lua/auto-session/session-lens/init.lua @@ -29,7 +29,7 @@ function SessionLens.make_telescope_callback(opts) -- the name to display, possibly with a shortened path local display_name - -- an annotation about the sesssion, added to display_name after any path processing + -- an annotation about the session, added to display_name after any path processing local annotation = "" if Lib.is_legacy_file_name(file_name) then session_name = (Lib.legacy_unescape_session_name(file_name):gsub("%.vim$", ""))