diff --git a/Brewfile b/Brewfile index a3cd8f6..8c3a3c3 100644 --- a/Brewfile +++ b/Brewfile @@ -408,8 +408,6 @@ brew "wxwidgets" brew "xdotool" # JavaScript package manager brew "yarn" -# Blazing fast terminal file manager written in Rust, based on async I/O -brew "yazi" # Download YouTube videos from the command-line brew "youtube-dl" # Process YAML, JSON, XML, CSV and properties documents from the CLI diff --git a/nix/home/default.nix b/nix/home/default.nix index b4b38e7..1f63568 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -23,6 +23,7 @@ in ./ruby ./skhd ./yabai + ./yazi ]; config = { diff --git a/nix/home/yazi/default.nix b/nix/home/yazi/default.nix new file mode 100644 index 0000000..6160219 --- /dev/null +++ b/nix/home/yazi/default.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: + +{ + programs.yazi = { + enable = true; + enableBashIntegration = true; + enableFishIntegration = true; + enableZshIntegration = true; + settings = { + log = { + enabled = false; + }; + manager = { + ratio = [ 1 4 3 ]; + show_hidden = false; + sort_by = "natural"; + sort_dir_first = true; + sort_sensitive = false; + sort_reverse = false; + show_symlink = true; + }; + opener = { + edit = [ + { + run = "nvim \"$@\""; + block = true; + } + ]; + }; + }; + }; + + home.packages = [ pkgs.yazi ]; +}