feat(yazi): add new plugin: git integration

This commit is contained in:
Sergio Laín 2024-09-05 12:26:56 +02:00
parent 10881d2f87
commit cd9b2ec5ac
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
4 changed files with 14 additions and 0 deletions

View file

@ -30,6 +30,7 @@ The plugins I'm using are the following:
- [fg](https://gitee.com/DreamMaoMao/fg.yazi) - [fg](https://gitee.com/DreamMaoMao/fg.yazi)
- [smart-filter](https://github.com/yazi-rs/plugins/tree/main/smart-filter.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) - [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). The added keymaps are located on [this file](../keymap.toml).

View file

@ -179,3 +179,5 @@ require("yatline-githead"):setup({
unstaged_color = catppuccin_palette.yellow, unstaged_color = catppuccin_palette.yellow,
untracked_color = catppuccin_palette.pink, untracked_color = catppuccin_palette.pink,
}) })
require("git"):setup()

View file

@ -6,6 +6,7 @@ deps = [
{ use = "imsi32/yatline-githead", rev = "2f2b000" }, { use = "imsi32/yatline-githead", rev = "2f2b000" },
{ use = "yazi-rs/plugins:smart-filter", rev = "b659791" }, { use = "yazi-rs/plugins:smart-filter", rev = "b659791" },
{ use = "yazi-rs/plugins:hide-preview", rev = "b659791" }, { use = "yazi-rs/plugins:hide-preview", rev = "b659791" },
{ use = "yazi-rs/plugins:git", rev = "118ae4d" },
] ]
[flavor] [flavor]

View file

@ -72,3 +72,13 @@ rules = [
{ mime = "*", use = "fallback" }, { mime = "*", use = "fallback" },
] ]
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"