Skip to content

zed-extensions/git_firefly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Firefly

Provide the syntax highlighting for the following Languages:

  • Git Attributes: .gitattributes, .git/info/attributes, etc
  • Git Commit: COMMIT_EDITMSG, EDIT_DESCRIPTION, MERGE_MSG, NOTES_EDITMSG, TAG_EDITMSG
  • Git Config: .gitconfig, .gitmodules, .lfsconfig, config.worktree
  • Git Ignore: .gitignore, .dockerignore, .npmignore, .prettierignore, etc
  • 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:

{
  "file_types": {
    "Git Attributes": ["{git,.git,.git/info}/attributes"],
    "Git Config": ["{git,.git/modules,.git/modules/*}/config"],
    "Git Ignore": ["{git,.git}/ignore", ".git/info/exclude"]
  }
}

Use zed commit editor

{
  "terminal": {
    "env": {
      "GIT_EDITOR": "zed --wait"
    }
  }
}

And Then

git add .
git commit
git push