cleanup and fixing yazi plugins

This commit is contained in:
Matt Nish-Lapidus 2025-05-05 11:13:21 -04:00
parent b330c1c08e
commit 9fb223704e
8 changed files with 47 additions and 78 deletions

75
flake.lock generated
View file

@ -30,11 +30,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745812220, "lastModified": 1746411114,
"narHash": "sha256-hotBG0EJ9VmAHJYF0yhWuTVZpENHvwcJ2SxvIPrXm+g=", "narHash": "sha256-mLlkVX1kKbAa/Ns5u26wDYw4YW4ziMFM21fhtRmfirU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "d0c543d740fad42fe2c035b43c9d41127e073c78", "rev": "b5d1320ebc2f34dbea4655f95167f55e2130cdb3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -90,11 +90,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1746375743, "lastModified": 1746437045,
"narHash": "sha256-8Vv393fOQ4/oo7gmoAvziIMvtJqXH9oIyjMZ6Hx+P44=", "narHash": "sha256-eoByZKfU87P0DD6Uc0sDrfJK+tAE+CnBmZNtMmtERJE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "a281243eaec6ac810584f2a73126e8dd48c3a15e", "rev": "fc120cc0265ef5e255d87ae4b4408c355d79fa30",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -378,11 +378,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746369725, "lastModified": 1746413188,
"narHash": "sha256-m3ai7LLFYsymMK0uVywCceWfUhP0k3CALyFOfcJACqE=", "narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1a1793f6d940d22c6e49753548c5b6cb7dc5545d", "rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -653,26 +653,6 @@
"type": "github" "type": "github"
} }
}, },
"impala": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1739828115,
"narHash": "sha256-a7IgIGkXcWX81nFcoQ3Q/lbBdBpoD60EMxwuTj/JqJU=",
"owner": "pythops",
"repo": "impala",
"rev": "008b36f6b650a694f08f0d83fc8a109c33395533",
"type": "github"
},
"original": {
"owner": "pythops",
"repo": "impala",
"type": "github"
}
},
"isd": { "isd": {
"inputs": { "inputs": {
"nix-appimage": "nix-appimage", "nix-appimage": "nix-appimage",
@ -760,11 +740,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746032033, "lastModified": 1746442382,
"narHash": "sha256-BCD0tfDNlQHFM75THRtXM3GegMg/KbREsYllg7Az9ao=", "narHash": "sha256-lFUHQdnDqnXXzigQn6Kd4aVrDDjg80HAb7DfThQNC/I=",
"owner": "viperML", "owner": "viperML",
"repo": "nh", "repo": "nh",
"rev": "894bb7ebf3adb58f76d1f7d9f6b33f58758d40f0", "rev": "4eb1941c2e30f3dabbf24619c7ca7303c448983d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -930,11 +910,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1746341346, "lastModified": 1746427242,
"narHash": "sha256-WjupK5Xpc+viJlJWiyPHp/dF4aJItp1BPuFsEdv2/fI=", "narHash": "sha256-KvZ6G5sdBdcrglsqcOx8BT6NpHVMVHc8wssMRhv/+1g=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "0833dc8bbc4ffa9cf9b0cbfccf1c5ec8632fc66e", "rev": "a4bb30a9000cf0444ecc8fdca8096d072f77f9e8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -988,11 +968,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1746183838, "lastModified": 1746301764,
"narHash": "sha256-kwaaguGkAqTZ1oK0yXeQ3ayYjs8u/W7eEfrFpFfIDFA=", "narHash": "sha256-5odz+NZszRya//Zd0P8h+sIwOnV35qJi+73f4I+iv1M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bf3287dac860542719fe7554e21e686108716879", "rev": "537ee98218704e21ea465251de512ab6bbb9012e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1036,11 +1016,11 @@
}, },
"nixpkgs-stable_4": { "nixpkgs-stable_4": {
"locked": { "locked": {
"lastModified": 1746183838, "lastModified": 1746422338,
"narHash": "sha256-kwaaguGkAqTZ1oK0yXeQ3ayYjs8u/W7eEfrFpFfIDFA=", "narHash": "sha256-NTtKOTLQv6dPfRe00OGSywg37A1FYqldS6xiNmqBUYc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bf3287dac860542719fe7554e21e686108716879", "rev": "5b35d248e9206c1f3baf8de6a7683fee126364aa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1084,11 +1064,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1746232882, "lastModified": 1746328495,
"narHash": "sha256-MHmBH2rS8KkRRdoU/feC/dKbdlMkcNkB5mwkuipVHeQ=", "narHash": "sha256-uKCfuDs7ZM3QpCE/jnfubTg459CnKnJG/LwqEVEdEiw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7a2622e2c0dbad5c4493cb268aba12896e28b008", "rev": "979daf34c8cacebcd917d540070b52a3c2b9b16e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1193,7 +1173,6 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"hypridle": "hypridle", "hypridle": "hypridle",
"hyprlock": "hyprlock", "hyprlock": "hyprlock",
"impala": "impala",
"isd": "isd", "isd": "isd",
"musnix": "musnix", "musnix": "musnix",
"nh": "nh", "nh": "nh",
@ -1608,11 +1587,11 @@
"rust-overlay": "rust-overlay_3" "rust-overlay": "rust-overlay_3"
}, },
"locked": { "locked": {
"lastModified": 1746379089, "lastModified": 1746432685,
"narHash": "sha256-JRwPB7Ur2/jfNFyrPcdVc4hzKrdKsAPAb9hADPYgLg4=", "narHash": "sha256-hvdf+4gfQ3joNEx/xXhptHQVPkGDHcpBgXipun8bfbQ=",
"owner": "sxyazi", "owner": "sxyazi",
"repo": "yazi", "repo": "yazi",
"rev": "c53865788a5ec08e10d8785343481af16d24fb05", "rev": "db609517835cc56e25920fde60a9f9e91a8b0648",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -98,10 +98,10 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
impala = { # impala = {
url = "github:pythops/impala"; # url = "github:pythops/impala";
inputs.nixpkgs.follows = "nixpkgs"; # inputs.nixpkgs.follows = "nixpkgs";
}; # };
# emenel-templates.url = "git+ssh://git@gt.emenel.ca/emenel/nix-flake-templates"; # emenel-templates.url = "git+ssh://git@gt.emenel.ca/emenel/nix-flake-templates";
# nix-way-templates.url = "github:the-nix-way/dev-templates"; # nix-way-templates.url = "github:the-nix-way/dev-templates";

View file

@ -363,15 +363,15 @@
"2620:fe::fe" "2620:fe::fe"
"2620:fe::9" "2620:fe::9"
]; ];
wireless.iwd = { # wireless.iwd = {
enable = true; # enable = true;
}; # };
networkmanager = { networkmanager = {
enable = true; enable = true;
wifi = { # wifi = {
powersave = true; # powersave = true;
backend = "iwd"; # backend = "iwd";
}; # };
}; };
}; };

View file

@ -4,7 +4,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
inputs.isd.packages.x86_64-linux.default inputs.isd.packages.x86_64-linux.default
inputs.impala.packages.x86_64-linux.default # inputs.impala.packages.x86_64-linux.default
cmake cmake
cmake-format cmake-format

View file

@ -105,7 +105,7 @@ in {
"format-disconnected" = "󰱟"; "format-disconnected" = "󰱟";
"tooltip-format" = "{essid} {ifname}"; "tooltip-format" = "{essid} {ifname}";
"max-length" = 50; "max-length" = 50;
"on-click" = "$HOME/.local/bin/wezapp impala"; "on-click" = "$HOME/.local/bin/wezlauncher nmtui";
}; };
"tray" = { "tray" = {

View file

@ -12,14 +12,14 @@
"diff" "diff"
"git" "git"
"mount" "mount"
# "toggle-pane" "smart-paste"
"toggle-pane"
]; ];
officialPluginsSrc = pkgs.fetchgit { officialPluginsSrc = pkgs.fetchgit {
url = "https://github.com/yazi-rs/plugins.git"; url = "https://github.com/yazi-rs/plugins.git";
sparseCheckout = map (p: "${p}.yazi") officialPluginsNames; sparseCheckout = map (p: "${p}.yazi") officialPluginsNames;
rev = "HEAD"; hash = "sha256-bre666Z5qEqkt3c2wLfX5tI2+JMoeRdP4721bJeanKs=";
hash = "sha256-3F44uFeFBX7PNXo2/maiAzkA/OfweyN4nbDhftna+CI=";
}; };
officialPlugins = officialPlugins =
@ -67,7 +67,6 @@
dir-rules = ./yazi/plugins/dir-rules.yazi; dir-rules = ./yazi/plugins/dir-rules.yazi;
smart-tab = ./yazi/plugins/smart-tab.yazi; smart-tab = ./yazi/plugins/smart-tab.yazi;
smart-paste = ./yazi/plugins/smart-paste.yazi;
}; };
keymap = { keymap = {

View file

@ -1,4 +1,8 @@
require("git"):setup() require("git"):setup()
th.git = th.git or {}
th.git.modified_sign = "M"
th.git.deleted_sign = "D"
require("dir-rules"):setup() require("dir-rules"):setup()
require("restore"):setup({ require("restore"):setup({

View file

@ -1,13 +0,0 @@
--- @sync entry
return {
entry = function()
local h = cx.active.current.hovered
if h and h.cha.is_dir then
ya.mgr_emit("enter", {})
ya.mgr_emit("paste", {})
ya.mgr_emit("leave", {})
else
ya.mgr_emit("paste", {})
end
end,
}