custom-hypr - add yazi config

This commit is contained in:
huyjaky
2025-03-08 21:24:58 +07:00
parent ad65845811
commit cefa13dd6d
30 changed files with 3475 additions and 46 deletions

50
.config/yazi/init.lua Normal file
View File

@@ -0,0 +1,50 @@
-- function Status:name()
-- local h = cx.active.current.hovered
-- if not h then
-- return ui.Span("")
-- end
-- local linked = ""
-- if h.link_to ~= nil then
-- linked = " -> " .. tostring(h.link_to)
-- end
-- return ui.Span(" " .. h.name .. linked)
-- end
-- Status:children_add(function()
-- local h = cx.active.current.hovered
-- if h == nil or ya.target_family() ~= "unix" then
-- return ui.Line({})
-- end
-- return ui.Line({
-- ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("#6495ED"),
-- ui.Span(":"):fg("#87CEFA"),
-- ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("#6495ED"),
-- ui.Span(" "),
-- })
-- end, 500, Status.RIGHT)
-- Header:children_add(function()
-- if ya.target_family() ~= "unix" then
-- return ui.Line({})
-- end
-- return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("#87CEFA")
-- end, 500, Header.LEFT)
require("full-border"):setup({
-- Available values: ui.Border.PLAIN, ui.Border.ROUNDED
type = ui.Border.ROUNDED,
})
require("eza-preview"):setup({
-- Determines the directory depth level to tree preview (default: 3)
level = 3,
-- Whether to follow symlinks when previewing directories (default: false)
follow_symlinks = false,
-- Whether to show target file info instead of symlink info (default: false)
dereference = false
})