diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 20:49:49 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 20:49:49 +0900 |
| commit | bdc608acabe856db2134642816cc806b34894863 (patch) | |
| tree | 61cbcb30acbcafb56853bb77e5c89efae8f52dc2 /ar/.config/yazi/init.lua | |
| parent | 805711c3406fd5360486460bcc6dfb6f741fd69c (diff) | |
modified shell/bm-dirs, modified shell/bm-files, created yazi/
Diffstat (limited to 'ar/.config/yazi/init.lua')
| -rw-r--r-- | ar/.config/yazi/init.lua | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/ar/.config/yazi/init.lua b/ar/.config/yazi/init.lua new file mode 100644 index 0000000..13d69a6 --- /dev/null +++ b/ar/.config/yazi/init.lua @@ -0,0 +1,76 @@ +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 + +require("smart-enter"):setup({ + open_multi = true, +}) + +require("full-border"):setup({ + type = ui.Border.PLAIN, -- or ui.Border.ROUNDED +}) + +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({ + keys = { + r = "Red", + o = "Orange", + y = "Yellow", + g = "Green", + b = "Blue", + p = "Purple", + }, + colors = { + Red = "#ee7b70", + Orange = "#f5bd5c", + Yellow = "#fbe764", + Green = "#91fc87", + Blue = "#5fa3f8", + Purple = "#cb88f8", + }, +}) + +require("folder-rules"):setup() |
