1

Home: Disable nnn + update yazi open/play/edit config

This commit is contained in:
2025-06-23 17:00:33 +02:00
parent 8acf295bd6
commit 17033a859e

View File

@ -195,7 +195,7 @@ rec {
neovide = true; neovide = true;
}; };
nnn.enable = true; nnn.enable = false;
rofi = { rofi = {
enable = true; enable = true;
@ -521,7 +521,6 @@ rec {
''; '';
}; };
# TODO: Currently depends on nnn module. Create yazi module mirroring nnn module (deps etc.)
yazi = let yazi = let
yazi-plugins = pkgs.fetchFromGitHub { yazi-plugins = pkgs.fetchFromGitHub {
owner = "yazi-rs"; owner = "yazi-rs";
@ -541,11 +540,39 @@ rec {
enableFishIntegration = true; enableFishIntegration = true;
shellWrapperName = "y"; shellWrapperName = "y";
# https://yazi-rs.github.io/docs/configuration/yazi
settings = { settings = {
mgr = { mgr = {
show_hidden = false; show_hidden = false;
}; };
# Associate mimetypes with edit/open/play actions
# open = {};
# Configure programs to edit/open/play files
opener = {
play = [
{
run = ''vlc "$@"'';
orphan = true;
for = "unix";
}
];
edit = [
{
run = ''$EDITOR "$@"'';
block = true;
for = "unix";
}
];
open = [
{
run = ''xdg-open "$@"'';
desc = "Open";
}
];
};
preview = { preview = {
max_width = 1000; max_width = 1000;
max_height = 1000; max_height = 1000;