Skip to content

Commit

Permalink
chore: no 🐍!
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronr committed Aug 22, 2024
1 parent f67c316 commit e5bd814
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lua/auto-session/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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()))
Expand Down
2 changes: 1 addition & 1 deletion lua/auto-session/lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, "|")

Expand Down
2 changes: 1 addition & 1 deletion lua/auto-session/session-lens/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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$", ""))
Expand Down

0 comments on commit e5bd814

Please sign in to comment.