Skip to content

Commit

Permalink
fix(auto-session): fix command names (ayamir#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy authored and singlemancombat committed May 10, 2023
1 parent fdfbe93 commit 1b380aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lua/keymap/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ local plug_map = {
return et("<Plug>(accelerated_jk_gk)")
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"),
-- Plugin: auto_session
["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
6 changes: 3 additions & 3 deletions lua/modules/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ editor["rainbowhxch/accelerated-jk.nvim"] = {
config = require("editor.accelerated-jk"),
}
editor["rmagatti/auto-session"] = {
lazy = true,
cmd = { "SaveSession", "RestoreSession", "DeleteSession" },
config = require("editor.auto-session"),
lazy = true,
cmd = { "SessionSave", "SessionRestore", "SessionDelete" },
config = require("editor.auto-session"),
}
editor["m4xshen/autoclose.nvim"] = {
lazy = true,
Expand Down

0 comments on commit 1b380aa

Please sign in to comment.