diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 17:14:51 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 17:14:51 +0900 |
| commit | a3ed0a3cb36d192c37e040d0dfe57c42113f2161 (patch) | |
| tree | c216d680c4bfbe2e53232af1496c9655e347d79b /mac/.config/yazi/plugins.bak/git.yazi/README.md | |
| parent | 2e6d3671d0e01ff5751893075e7fc5c53b288f95 (diff) | |
updates
Diffstat (limited to 'mac/.config/yazi/plugins.bak/git.yazi/README.md')
| -rw-r--r-- | mac/.config/yazi/plugins.bak/git.yazi/README.md | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/mac/.config/yazi/plugins.bak/git.yazi/README.md b/mac/.config/yazi/plugins.bak/git.yazi/README.md deleted file mode 100644 index 96a87a8..0000000 --- a/mac/.config/yazi/plugins.bak/git.yazi/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# git.yazi - -Show the status of Git file changes as linemode in the file list. - -https://github.com/user-attachments/assets/34976be9-a871-4ffe-9d5a-c4cdd0bf4576 - -## Installation - -```sh -ya pkg add 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" -``` - -## Advanced - -> [!NOTE] -> The following configuration must be put before `require("git"):setup()` - -You can customize the [Style](https://yazi-rs.github.io/docs/plugins/layout#style) of the status sign with: - -- `th.git.modified` -- `th.git.added` -- `th.git.untracked` -- `th.git.ignored` -- `th.git.deleted` -- `th.git.updated` - -For example: - -```lua --- ~/.config/yazi/init.lua -th.git = th.git or {} -th.git.modified = ui.Style():fg("blue") -th.git.deleted = ui.Style():fg("red"):bold() -``` - -You can also customize the text of the status sign with: - -- `th.git.modified_sign` -- `th.git.added_sign` -- `th.git.untracked_sign` -- `th.git.ignored_sign` -- `th.git.deleted_sign` -- `th.git.updated_sign` - -For example: - -```lua --- ~/.config/yazi/init.lua -th.git = th.git or {} -th.git.modified_sign = "M" -th.git.deleted_sign = "D" -``` - -## License - -This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. |
