aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules6
-rw-r--r--book/src/generated/lang-support.md1
m---------helix-syntax/languages/tree-sitter-gitcommit0
-rw-r--r--languages.toml8
4 files changed, 14 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index edfe3c39..ad100a00 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -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
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 2777dc4e..d6e0d9af 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -11,6 +11,7 @@
| dockerfile | ✓ | | | `docker-langserver` |
| elixir | ✓ | | | `elixir-ls` |
| fish | ✓ | ✓ | ✓ | |
+| gitcommit | ✓ | | | |
| glsl | ✓ | | ✓ | |
| go | ✓ | ✓ | ✓ | `gopls` |
| html | ✓ | | | |
diff --git a/helix-syntax/languages/tree-sitter-gitcommit b/helix-syntax/languages/tree-sitter-gitcommit
new file mode 160000
+Subproject 6a2ddbecd49fa8e7e1fda24d43e363cfd9171ca
diff --git a/languages.toml b/languages.toml
index dd18fa19..f73011c8 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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 = " " }