yazi config changes

This commit is contained in:
Matt Nish-Lapidus 2025-02-17 12:12:38 -05:00
parent 69d8a71911
commit e185f30421
5 changed files with 37 additions and 10 deletions

View file

@ -1,6 +1,11 @@
require("git"):setup()
require("yatline-symlink"):setup()
require("dir-rules"):setup()
require("smart-enter"):setup {
open_multi = true,
}
require("yatline"):setup({
--theme = my_theme,
section_separator = { open = "", close = "" },

View file

@ -0,0 +1,11 @@
--- @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 }

View file

@ -0,0 +1,7 @@
--- @sync entry
return {
entry = function()
local h = cx.active.current.hovered
ya.manager_emit("tab_create", h and h.cha.is_dir and { h.url } or { current = true })
end,
}