yazi: update configuration format to support v25.12.29 (#2130)

Closes: https://github.com/nix-community/stylix/issues/2121
Link: https://github.com/nix-community/stylix/pull/2130

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: 0xda157 <da157@voidq.com>
This commit is contained in:
kerfuzzle 2026-01-16 19:23:33 +00:00 committed by GitHub
parent 5287bc719d
commit 908d40690f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ mkTarget {
mkSame = c: (mkBoth c c);
in
{
mgr = rec {
mgr = {
# Reusing bat themes, since it's suggested in the styling guide
# https://yazi-rs.github.io/docs/configuration/theme#mgr
syntect_theme = colors {
@ -28,10 +28,6 @@ mkTarget {
};
cwd = mkFg cyan;
hovered = (mkBg base02) // {
bold = true;
};
preview_hovered = hovered;
find_keyword = (mkFg green) // {
bold = true;
};
@ -46,6 +42,13 @@ mkTarget {
count_selected = mkBoth base00 yellow;
};
indicator = rec {
current = (mkBg base02) // {
bold = true;
};
preview = current;
};
tabs = {
active = (mkBoth base00 blue) // {
bold = true;
@ -144,7 +147,12 @@ mkTarget {
(mkRule "application/rtf" green)
(mkRule "application/vnd.*" green)
((mkRule "inode/directory" blue) // { bold = cfg.boldDirectory; })
# Use url rule for folders as folder mime types do not get checked until they are hovered
{
url = "*/";
fg = blue;
bold = cfg.boldDirectory;
}
(mkRule "*" base05)
];
};