mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 01:54:02 +05:30
Trying yazi instead of ranger
This commit is contained in:
parent
c28546a0c8
commit
31e2f08079
2 changed files with 23 additions and 0 deletions
|
@ -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 = [ "@" ]; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue