diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:18:26 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:18:26 +0900 |
| commit | 95528f5119f0e973bb0ffb41ed4e17564b39676e (patch) | |
| tree | 2aab63e1793e15adc8f986789318dfece947383f /mac/.config/yazi/init.lua | |
| parent | fa7b259c8011f410632dae255c04015fb5c5a0fa (diff) | |
updates
Diffstat (limited to 'mac/.config/yazi/init.lua')
| -rw-r--r-- | mac/.config/yazi/init.lua | 41 |
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() |
