yazi/yazi-plugin/preset/plugins/session.lua

8 lines
202 B
Lua
Raw Normal View History

local function setup(_, opts)
if opts.sync_yanked then
ps.sub_remote("@yank", function(body) ya.manager_emit("update_yanked", { cut = body.cut, urls = body }) end)
end
end
return { setup = setup }