summaryrefslogtreecommitdiff
path: root/mac/.config/yazi/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/yazi/init.lua')
-rw-r--r--mac/.config/yazi/init.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/mac/.config/yazi/init.lua b/mac/.config/yazi/init.lua
index 9d6b9ed..13d69a6 100644
--- a/mac/.config/yazi/init.lua
+++ b/mac/.config/yazi/init.lua
@@ -1,3 +1,33 @@
+Status:children_add(function(self)
+ local h = self._current.hovered
+ if h and h.link_to then
+ return " -> " .. tostring(h.link_to)
+ else
+ return ""
+ end
+end, 3300, Status.LEFT)
+
+Status:children_add(function()
+ local h = cx.active.current.hovered
+ if not h or ya.target_family() ~= "unix" then
+ return ""
+ end
+
+ return ui.Line({
+ ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
+ ":",
+ ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
+ " ",
+ })
+end, 500, Status.RIGHT)
+
+Header:children_add(function()
+ if ya.target_family() ~= "unix" then
+ return ""
+ end
+ return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue")
+end, 500, Header.LEFT)
+
if os.getenv("NVIM") then
require("toggle-pane"):entry("min-preview")
end
@@ -13,6 +43,15 @@ require("full-border"):setup({
th.git = th.git or {}
th.git.modified_sign = "M"
th.git.deleted_sign = "D"
+th.git.added_sign = "A"
+th.git.renamed_sign = "R"
+th.git.copied_sign = "C"
+th.git.untracked_sign = "?"
+th.git.ignored_sign = "!"
+th.git.conflicted_sign = "U"
+th.git.typechange_sign = "T"
+th.git.staged_sign = "+"
+
require("git"):setup()
require("mactag"):setup({
@@ -33,3 +72,5 @@ require("mactag"):setup({
Purple = "#cb88f8",
},
})
+
+require("folder-rules"):setup()