From cd9b2ec5ac06873e9b8f963788f900cf1205eed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 5 Sep 2024 12:26:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(yazi):=20add=20new=20plugin:?= =?UTF-8?q?=20git=20integration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/yazi/.github/README.md | 1 + .config/yazi/init.lua | 2 ++ .config/yazi/package.toml | 1 + .config/yazi/yazi.toml | 10 ++++++++++ 4 files changed, 14 insertions(+) diff --git a/.config/yazi/.github/README.md b/.config/yazi/.github/README.md index 4e8e0dba..34558ec4 100644 --- a/.config/yazi/.github/README.md +++ b/.config/yazi/.github/README.md @@ -30,6 +30,7 @@ The plugins I'm using are the following: - [fg](https://gitee.com/DreamMaoMao/fg.yazi) - [smart-filter](https://github.com/yazi-rs/plugins/tree/main/smart-filter.yazi) - [hide-preview](https://github.com/yazi-rs/plugins/tree/main/hide-preview.yazi) +- [git](https://github.com/yazi-rs/plugins/tree/main/git.yazi) The added keymaps are located on [this file](../keymap.toml). diff --git a/.config/yazi/init.lua b/.config/yazi/init.lua index 6c4254dc..68ba0eb0 100644 --- a/.config/yazi/init.lua +++ b/.config/yazi/init.lua @@ -179,3 +179,5 @@ require("yatline-githead"):setup({ unstaged_color = catppuccin_palette.yellow, untracked_color = catppuccin_palette.pink, }) + +require("git"):setup() diff --git a/.config/yazi/package.toml b/.config/yazi/package.toml index f812361f..36ecabde 100644 --- a/.config/yazi/package.toml +++ b/.config/yazi/package.toml @@ -6,6 +6,7 @@ deps = [ { use = "imsi32/yatline-githead", rev = "2f2b000" }, { use = "yazi-rs/plugins:smart-filter", rev = "b659791" }, { use = "yazi-rs/plugins:hide-preview", rev = "b659791" }, + { use = "yazi-rs/plugins:git", rev = "118ae4d" }, ] [flavor] diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml index 7f09449c..1b9c651a 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -72,3 +72,13 @@ rules = [ { mime = "*", use = "fallback" }, ] + +[[plugin.prepend_fetchers]] +id = "git" +name = "*" +run = "git" + +[[plugin.prepend_fetchers]] +id = "git" +name = "*/" +run = "git"