yazi config changes
This commit is contained in:
parent
69d8a71911
commit
e185f30421
5 changed files with 37 additions and 10 deletions
|
@ -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 = "" },
|
||||
|
|
|
@ -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 }
|
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue