on master help sign in
add gitcommit grammar and language configuration
commitfd31662b70ee32d199950ba2873680fc9043c975 authorMichael Davis <mcarsondavis@gmail.com> dateFri 24 Dec 2021, 12:44 (5 years ago) parent4b0b1a5
4 files changed+15−1
.gitmodules+5−1 book/src/generated/lang-support.md+1 helix-syntax/languages/tree-sitter-gitcommit+1 languages.toml+8
.gitmodules+5−1
@@ -165,8 +165,12 @@
165165[submodule "helix-syntax/languages/tree-sitter-dockerfile"]
166166 path = helix-syntax/languages/tree-sitter-dockerfile
167167 url = https://github.com/camdencheek/tree-sitter-dockerfile.git
168− shallow = true
168+ shallow = true
169169[submodule "helix-syntax/languages/tree-sitter-fish"]
170170 path = helix-syntax/languages/tree-sitter-fish
171171 url = https://github.com/ram02z/tree-sitter-fish
172172 shallow = true
173+[submodule "helix-syntax/languages/tree-sitter-gitcommit"]
174+ path = helix-syntax/languages/tree-sitter-gitcommit
175+ url = https://github.com/the-mikedavis/tree-sitter-gitcommit.git
176+ shallow = true
book/src/generated/lang-support.md+1
@@ -11,6 +11,7 @@
1111| dockerfile | ✓ | | | `docker-langserver` |
1212| elixir | ✓ | | | `elixir-ls` |
1313| fish | ✓ | ✓ | ✓ | |
14+| gitcommit | ✓ | | | |
1415| glsl | ✓ | | ✓ | |
1516| go | ✓ | ✓ | ✓ | `gopls` |
1617| html | ✓ | | | |
helix-syntax/languages/tree-sitter-gitcommitnew file+1

Submodule changed.

languages.toml+8
@@ -473,3 +473,11 @@ file-types = ["Dockerfile", "dockerfile"]
473473comment-token = "#"
474474indent = { tab-width = 2, unit = " " }
475475language-server = { command = "docker-langserver", args = ["--stdio"] }
476+
477+[[language]]
478+name = "gitcommit"
479+scope = "git.commitmsg"
480+roots = []
481+file-types = ["COMMIT_EDITMSG"]
482+comment-token = "#"
483+indent = { tab-width = 2, unit = " " }