feat: new git.yazi plugin

This commit is contained in:
sxyazi
2024-08-31 12:55:14 +08:00
parent b659791954
commit c5bc1f1ffc
3 changed files with 155 additions and 1 deletions

32
git.yazi/README.md Normal file
View File

@@ -0,0 +1,32 @@
# git.yazi
Show Git file changes as linemode in the file list.
## Installation
```sh
ya pack -a yazi-rs/plugins:git
```
## Setup
Add the following to your `~/.config/yazi/init.lua`:
```lua
require("git"):setup {
}
```
And register it as fetchers in your `~/.config/yazi/yazi.toml`:
```toml
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"
```