From ad8fb42b432da2e1e039355689b92df850cd2218 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Wed, 8 Jul 2026 05:59:57 +0100 Subject: [PATCH] Add proper yazi theme --- home/yazi/default.nix | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/home/yazi/default.nix b/home/yazi/default.nix index 9ac727a..5f0248e 100644 --- a/home/yazi/default.nix +++ b/home/yazi/default.nix @@ -1,11 +1,11 @@ {pkgs, ...}: let - plugins-repo = pkgs.fetchFromGitHub { - owner = "yazi-rs"; - repo = "plugins"; - rev = "8cd50c622898d3ace3ca821f540241965308289a"; - hash = "sha256-f4y952sUF/lrHMX6enQts/obk2DeatqAcaVHfjTD65k="; + tkn-repo = pkgs.fetchFromGitHub { + owner = "BennyOe"; + repo = "tokyo-night.yazi"; + rev = "8e6296f14daff24151c736ebd0b9b6cd89b02b03"; + hash = "sha256-LArhRteD7OQRBguV1n13gb5jkl90sOxShkDzgEf3PA0="; }; in { @@ -25,9 +25,17 @@ in }; plugins = { - max-preview = "${plugins-repo}/max-preview.yazi"; - full-border = "${plugins-repo}/full-border.yazi"; - git = "${plugins-repo}/git.yazi"; + full-border = pkgs.yaziPlugins.full-border; + git = pkgs.yaziPlugins.git; + }; + + flavors = { + tokyo-night = tkn-repo; + }; + + theme.flavor = { + dark = "tokyo-night"; + light = "tokyo-night"; }; initLua = '' @@ -36,15 +44,5 @@ in order = 1500, } ''; - - keymap = { - manager.prepend_keymap = [ - { - on = ["A"]; - run = "plugin --sync max-preview"; - desc = "Maximize or restore the preview pane"; - } - ]; - }; }; }