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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,8 @@
require("git"):setup()
th.git = th.git or {}
th.git.modified_sign = "M"
th.git.deleted_sign = "D"
require("dir-rules"):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,
}