Skip to content

Commit

Permalink
add gitcommit grammar and language configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and archseer committed Dec 25, 2021
1 parent 4b0b1a5 commit fd31662
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,12 @@
[submodule "helix-syntax/languages/tree-sitter-dockerfile"]
path = helix-syntax/languages/tree-sitter-dockerfile
url = https://github.com/camdencheek/tree-sitter-dockerfile.git
shallow = true
shallow = true
[submodule "helix-syntax/languages/tree-sitter-fish"]
path = helix-syntax/languages/tree-sitter-fish
url = https://github.com/ram02z/tree-sitter-fish
shallow = true
[submodule "helix-syntax/languages/tree-sitter-gitcommit"]
path = helix-syntax/languages/tree-sitter-gitcommit
url = https://github.com/the-mikedavis/tree-sitter-gitcommit.git
shallow = true
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
| dockerfile || | | `docker-langserver` |
| elixir || | | `elixir-ls` |
| fish |||| |
| gitcommit || | | |
| glsl || || |
| go |||| `gopls` |
| html || | | |
Expand Down
1 change: 1 addition & 0 deletions helix-syntax/languages/tree-sitter-gitcommit
Submodule tree-sitter-gitcommit added at 6a2ddb
8 changes: 8 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,11 @@ file-types = ["Dockerfile", "dockerfile"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
language-server = { command = "docker-langserver", args = ["--stdio"] }

[[language]]
name = "gitcommit"
scope = "git.commitmsg"
roots = []
file-types = ["COMMIT_EDITMSG"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }

0 comments on commit fd31662

Please sign in to comment.