Skip to content

Commit

Permalink
Merge pull request #297 from daniprado/#257_SessionSave_accept_parameter
Browse files Browse the repository at this point in the history
#257 [BUG] :SessionSave doesn't actually accept an argument
  • Loading branch information
rmagatti authored May 21, 2024
2 parents 9e0a169 + bf1cf8f commit af2219b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ function SetupAutocmds()
vim.api.nvim_create_user_command(
"SessionSave",
SaveSession,
{ bang = true, desc = "Save the current session. Based in cwd if no arguments are passed" }
{ bang = true, nargs = '?', desc = "Save the current session. Based in cwd if no arguments are passed" }
)

vim.api.nvim_create_user_command("SessionRestore", SessionRestore, { bang = true, desc = "Restore Session" })
Expand Down

0 comments on commit af2219b

Please sign in to comment.