add gitcommit grammar and language configuration

This commit is contained in:
Michael Davis 2021-12-24 12:44:45 -06:00 committed by Blaž Hrastnik
parent 4b0b1a5657
commit fd31662b70
4 changed files with 15 additions and 1 deletions

6
.gitmodules vendored
View File

@ -165,8 +165,12 @@
[submodule "helix-syntax/languages/tree-sitter-dockerfile"] [submodule "helix-syntax/languages/tree-sitter-dockerfile"]
path = helix-syntax/languages/tree-sitter-dockerfile path = helix-syntax/languages/tree-sitter-dockerfile
url = https://github.com/camdencheek/tree-sitter-dockerfile.git url = https://github.com/camdencheek/tree-sitter-dockerfile.git
shallow = true shallow = true
[submodule "helix-syntax/languages/tree-sitter-fish"] [submodule "helix-syntax/languages/tree-sitter-fish"]
path = helix-syntax/languages/tree-sitter-fish path = helix-syntax/languages/tree-sitter-fish
url = https://github.com/ram02z/tree-sitter-fish url = https://github.com/ram02z/tree-sitter-fish
shallow = true 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

View File

@ -11,6 +11,7 @@
| dockerfile | ✓ | | | `docker-langserver` | | dockerfile | ✓ | | | `docker-langserver` |
| elixir | ✓ | | | `elixir-ls` | | elixir | ✓ | | | `elixir-ls` |
| fish | ✓ | ✓ | ✓ | | | fish | ✓ | ✓ | ✓ | |
| gitcommit | ✓ | | | |
| glsl | ✓ | | ✓ | | | glsl | ✓ | | ✓ | |
| go | ✓ | ✓ | ✓ | `gopls` | | go | ✓ | ✓ | ✓ | `gopls` |
| html | ✓ | | | | | html | ✓ | | | |

@ -0,0 +1 @@
Subproject commit 6a2ddbecd49fa8e7e1fda24d43e363cfd9171ca0

View File

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