yazi: update config

This commit is contained in:
Tigor Hutasuhut 2024-10-08 15:47:58 +07:00
parent 970f7fe727
commit afa31b285f
3 changed files with 10 additions and 25 deletions

View file

@ -2,37 +2,21 @@
let let
cfg = config.profile.programs.yazi; cfg = config.profile.programs.yazi;
inherit (lib) mkIf; inherit (lib) mkIf;
catppuccin-theme = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "yazi";
rev = "37dec9bf1f7e52e0d593c225827b9dbc71ce504c";
hash = "sha256-oJo52hMSK7mr5f0DtnyaN1FVOSKKUOHWCT80V1qfyrU=";
};
mochaTheme = "${catppuccin-theme}/themes/mocha.toml";
in in
{ {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.yazi = { programs.yazi = {
enable = true; enable = true;
enableZshIntegration = 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 = { settings = {
theme = lib.modules.importToml mochaTheme;
manager = { manager = {
# 1/8 width for parent, 4/8 width for current, 3/8 width for preview # 1/8 width for parent, 4/8 width for current, 3/8 width for preview
ratio = [ 1 4 3 ]; ratio = [ 1 4 3 ];

View file

@ -76,6 +76,7 @@
bruno.enable = true; bruno.enable = true;
elisa.enable = true; elisa.enable = true;
obsidian.enable = true; obsidian.enable = true;
zoom.enable = true;
}; };
home.environments = { home.environments = {

View file

@ -20,7 +20,7 @@ in
sort_by = "natural"; sort_by = "natural";
sort_sensitive = false; sort_sensitive = false;
sort_dir_first = true; sort_dir_first = true;
linemode = "permissions"; linemode = "size";
show_hidden = true; show_hidden = true;
show_symlink = true; show_symlink = true;
scrolloff = 5; scrolloff = 5;