Skip to content

Commit

Permalink
fix(auto-session): fix command names (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy authored May 10, 2023
1 parent 463ac8f commit 6e2c7a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/keymap/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ local plug_map = {
end):with_expr(),

-- Plugin: auto_session
["n|<leader>ss"] = map_cu("SaveSession"):with_noremap():with_silent():with_desc("session: Save"),
["n|<leader>sr"] = map_cu("RestoreSession"):with_noremap():with_silent():with_desc("session: Restore"),
["n|<leader>sd"] = map_cu("DeleteSession"):with_noremap():with_silent():with_desc("session: Delete"),
["n|<leader>ss"] = map_cu("SessionSave"):with_noremap():with_silent():with_desc("session: Save"),
["n|<leader>sr"] = map_cu("SessionRestore"):with_noremap():with_silent():with_desc("session: Restore"),
["n|<leader>sd"] = map_cu("SessionDelete"):with_noremap():with_silent():with_desc("session: Delete"),

-- Plugin: nvim-bufdel
["n|<A-q>"] = map_cr("BufDel"):with_noremap():with_silent():with_desc("buffer: Close current"),
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ editor["rainbowhxch/accelerated-jk.nvim"] = {
}
editor["rmagatti/auto-session"] = {
lazy = true,
cmd = { "SaveSession", "RestoreSession", "DeleteSession" },
cmd = { "SessionSave", "SessionRestore", "SessionDelete" },
config = require("editor.auto-session"),
}
editor["m4xshen/autoclose.nvim"] = {
Expand Down

0 comments on commit 6e2c7a9

Please sign in to comment.