Trying yazi instead of ranger
This commit is contained in:
@ -17,6 +17,7 @@
|
|||||||
brave.enable = true;
|
brave.enable = true;
|
||||||
editor = "emacs";
|
editor = "emacs";
|
||||||
ranger.enable = true;
|
ranger.enable = true;
|
||||||
|
yazi.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
engineering.enable = true;
|
engineering.enable = true;
|
||||||
art.enable = true;
|
art.enable = true;
|
||||||
|
22
modules/user/yazi/default.nix
Normal file
22
modules/user/yazi/default.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ config, lib, pkgs, ...}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.userSettings.yazi;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
userSettings.yazi = {
|
||||||
|
enable = lib.mkEnableOption "Enable yazi TUI file manager";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
keymap.manager.prepend_keymap =
|
||||||
|
[
|
||||||
|
{ run = "shell ' \"$0\"' --cursor=0 --interactive"; on = [ "@" ]; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user