mirror of
https://github.com/Ascyii/projects.yazi.git
synced 2026-01-01 11:34:24 -05:00
fix: add @ to event name in yazi method
This commit is contained in:
@@ -90,7 +90,7 @@ The following are the default configurations:
|
|||||||
require("projects"):setup({
|
require("projects"):setup({
|
||||||
save = {
|
save = {
|
||||||
method = "yazi", -- yazi | lua
|
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
|
lua_save_path = "", -- path of saved file in `lua` method, comment out or assign explicitly
|
||||||
-- default value:
|
-- default value:
|
||||||
-- windows: "%APPDATA%/yazi/state/projects.json"
|
-- windows: "%APPDATA%/yazi/state/projects.json"
|
||||||
|
|||||||
2
main.lua
2
main.lua
@@ -517,7 +517,7 @@ local SUPPORTED_KEYS = {
|
|||||||
local _load_config = ya.sync(function(state, opts)
|
local _load_config = ya.sync(function(state, opts)
|
||||||
state.save = {
|
state.save = {
|
||||||
method = "yazi",
|
method = "yazi",
|
||||||
yazi_load_event = "projects-load",
|
yazi_load_event = "@projects-load",
|
||||||
lua_save_path = "",
|
lua_save_path = "",
|
||||||
}
|
}
|
||||||
if type(opts.save) == "table" then
|
if type(opts.save) == "table" then
|
||||||
|
|||||||
Reference in New Issue
Block a user