on master help sign in
add gitcommit grammar and language configuration
fd31662Michael Davis
.gitmodules+5−1
@@ -165,8 +165,12 @@
165[submodule "helix-syntax/languages/tree-sitter-dockerfile"]
165[submodule "helix-syntax/languages/tree-sitter-dockerfile"]
166 path = helix-syntax/languages/tree-sitter-dockerfile
166 path = helix-syntax/languages/tree-sitter-dockerfile
167 url = https://github.com/camdencheek/tree-sitter-dockerfile.git
167 url = https://github.com/camdencheek/tree-sitter-dockerfile.git
168− shallow = true
168+ shallow = true
169[submodule "helix-syntax/languages/tree-sitter-fish"]
169[submodule "helix-syntax/languages/tree-sitter-fish"]
170 path = helix-syntax/languages/tree-sitter-fish
170 path = helix-syntax/languages/tree-sitter-fish
171 url = https://github.com/ram02z/tree-sitter-fish
171 url = https://github.com/ram02z/tree-sitter-fish
172 shallow = true
172 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 @@
11| dockerfile | ✓ | | | `docker-langserver` |
11| dockerfile | ✓ | | | `docker-langserver` |
12| elixir | ✓ | | | `elixir-ls` |
12| elixir | ✓ | | | `elixir-ls` |
13| fish | ✓ | ✓ | ✓ | |
13| fish | ✓ | ✓ | ✓ | |
14+| gitcommit | ✓ | | | |
14| glsl | ✓ | | ✓ | |
15| glsl | ✓ | | ✓ | |
15| go | ✓ | ✓ | ✓ | `gopls` |
16| go | ✓ | ✓ | ✓ | `gopls` |
16| html | ✓ | | | |
17| html | ✓ | | | |
helix-syntax/languages/tree-sitter-gitcommitnew file+1

Submodule changed.

languages.toml+8
@@ -473,3 +473,11 @@ file-types = ["Dockerfile", "dockerfile"]
473comment-token = "#"
473comment-token = "#"
474indent = { tab-width = 2, unit = " " }
474indent = { tab-width = 2, unit = " " }
475language-server = { command = "docker-langserver", args = ["--stdio"] }
475language-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 = " " }