An open API service indexing awesome lists of open source software.

https://github.com/zed-extensions/git_firefly


https://github.com/zed-extensions/git_firefly

Last synced: 5 months ago
JSON representation

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
```