https://github.com/zed-extensions/git_firefly
https://github.com/zed-extensions/git_firefly
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zed-extensions/git_firefly
- Owner: zed-extensions
- License: apache-2.0
- Created: 2024-02-19T14:56:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-29T17:27:16.000Z (6 months ago)
- Last Synced: 2026-01-01T22:36:02.710Z (6 months ago)
- Language: Tree-sitter Query
- Size: 45.9 KB
- Stars: 85
- Watchers: 5
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Firefly

Provide the syntax highlighting for the following Languages:
- [Git Attributes](https://github.com/tree-sitter-grammars/tree-sitter-gitattributes): .gitattributes, .git/info/attributes, etc
- [Git Config](https://github.com/the-mikedavis/tree-sitter-git-config): .gitconfig, .gitmodules, .lfsconfig, config.worktree
- [Git Ignore](https://github.com/shunsambongi/tree-sitter-gitignore): .gitignore, .dockerignore, .npmignore, .prettierignore, etc
- [Git Rebase](https://github.com/the-mikedavis/tree-sitter-git-rebase): git-rebase-todo
## Configuration
This extension will automatically recognize the majority of filenames/extensions out of the box, but some require some additional configuration via [`file_types`] in Zed Settings:
```json
{
"file_types": {
"Git Attributes": ["**/{git,.git,.git/info}/attributes"],
"Git Config": ["*.gitconfig", "**/{git,.git/modules,.git/modules/*}/config"],
"Git Ignore": ["**/{git,.git}/ignore", "**/.git/info/exclude"]
},
}
```
## Use zed commit editor
```json
{
"terminal": {
"env": {
"GIT_EDITOR": "zed --wait"
}
}
}
```
And Then
```bash
git add .
git commit
git push
```