nixos-config/modules/home/yazi/plugins/smart-enter.yazi/main.lua
2025-03-21 16:50:54 -04:00

11 lines
310 B
Lua

--- @since 25.2.7
--- @sync entry
local function setup(self, opts) self.open_multi = opts.open_multi end
local function entry(self)
local h = cx.active.current.hovered
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
end
return { entry = entry, setup = setup }