diff --git a/home/programs/yazi.nix b/home/programs/yazi.nix index 39e47c3..7c77591 100644 --- a/home/programs/yazi.nix +++ b/home/programs/yazi.nix @@ -2,37 +2,21 @@ let cfg = config.profile.programs.yazi; inherit (lib) mkIf; + catppuccin-theme = pkgs.fetchFromGitHub { + owner = "catppuccin"; + repo = "yazi"; + rev = "37dec9bf1f7e52e0d593c225827b9dbc71ce504c"; + hash = "sha256-oJo52hMSK7mr5f0DtnyaN1FVOSKKUOHWCT80V1qfyrU="; + }; + mochaTheme = "${catppuccin-theme}/themes/mocha.toml"; in { config = mkIf cfg.enable { programs.yazi = { enable = true; enableZshIntegration = true; - keymap = { - manager.prepend_keymap = [ - # { - # on = [ "m" ]; - # run = "plugin bookmarks --args=save"; - # desc = "Save current position as a bookmark"; - # } - # { - # on = [ "'" ]; - # run = "plugin bookmarks --args=jump"; - # desc = "Jump to a bookmark"; - # } - # { - # on = [ "b" "d" ]; - # run = "plugin bookmarks --args=delete"; - # desc = "Delete a bookmark"; - # } - # { - # on = [ "b" "D" ]; - # run = "plugin bookmarks --args=delete_all"; - # desc = "Delete all bookmarks"; - # } - ]; - }; settings = { + theme = lib.modules.importToml mochaTheme; manager = { # 1/8 width for parent, 4/8 width for current, 3/8 width for preview ratio = [ 1 4 3 ]; diff --git a/profiles/fort.nix b/profiles/fort.nix index b6644a6..f9add8f 100644 --- a/profiles/fort.nix +++ b/profiles/fort.nix @@ -76,6 +76,7 @@ bruno.enable = true; elisa.enable = true; obsidian.enable = true; + zoom.enable = true; }; home.environments = { diff --git a/system/modules/yazi.nix b/system/modules/yazi.nix index 142a614..3c37db7 100644 --- a/system/modules/yazi.nix +++ b/system/modules/yazi.nix @@ -20,7 +20,7 @@ in sort_by = "natural"; sort_sensitive = false; sort_dir_first = true; - linemode = "permissions"; + linemode = "size"; show_hidden = true; show_symlink = true; scrolloff = 5;