fix: add @ to event name in yazi method

This commit is contained in:
MasouShizuka
2025-06-14 22:19:16 +08:00
parent f39f4201bf
commit 82febd5b45
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ The following are the default configurations:
require("projects"):setup({
save = {
method = "yazi", -- yazi | lua
yazi_load_event = "projects-load", -- event name when loading projects in `yazi` method
yazi_load_event = "@projects-load", -- event name when loading projects in `yazi` method
lua_save_path = "", -- path of saved file in `lua` method, comment out or assign explicitly
-- default value:
-- windows: "%APPDATA%/yazi/state/projects.json"

View File

@@ -517,7 +517,7 @@ local SUPPORTED_KEYS = {
local _load_config = ya.sync(function(state, opts)
state.save = {
method = "yazi",
yazi_load_event = "projects-load",
yazi_load_event = "@projects-load",
lua_save_path = "",
}
if type(opts.save) == "table" then