From 6e2c7a9ed644c192ea8e155d83820f5bfff5488e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=85=94=E9=96=91=E5=90=9F?= <50296129+Jint-lzxy@users.noreply.github.com> Date: Wed, 10 May 2023 10:39:55 +0800 Subject: [PATCH] fix(auto-session): fix command names (#728) Ref: https://github.com/rmagatti/auto-session/commit/a2cc591c7e4f742ffc7321bf1d46090c8b2c48bf --- lua/keymap/editor.lua | 6 +++--- lua/modules/plugins/editor.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/keymap/editor.lua b/lua/keymap/editor.lua index 37f56aeab..0d067aa54 100644 --- a/lua/keymap/editor.lua +++ b/lua/keymap/editor.lua @@ -15,9 +15,9 @@ local plug_map = { end):with_expr(), -- Plugin: auto_session - ["n|ss"] = map_cu("SaveSession"):with_noremap():with_silent():with_desc("session: Save"), - ["n|sr"] = map_cu("RestoreSession"):with_noremap():with_silent():with_desc("session: Restore"), - ["n|sd"] = map_cu("DeleteSession"):with_noremap():with_silent():with_desc("session: Delete"), + ["n|ss"] = map_cu("SessionSave"):with_noremap():with_silent():with_desc("session: Save"), + ["n|sr"] = map_cu("SessionRestore"):with_noremap():with_silent():with_desc("session: Restore"), + ["n|sd"] = map_cu("SessionDelete"):with_noremap():with_silent():with_desc("session: Delete"), -- Plugin: nvim-bufdel ["n|"] = map_cr("BufDel"):with_noremap():with_silent():with_desc("buffer: Close current"), diff --git a/lua/modules/plugins/editor.lua b/lua/modules/plugins/editor.lua index 4172e5ab2..135e65bd0 100644 --- a/lua/modules/plugins/editor.lua +++ b/lua/modules/plugins/editor.lua @@ -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"] = {