aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorrsteube2023-10-21 12:15:18 +0000
committerGitHub2023-10-21 12:15:18 +0000
commit764715a6c069754b852ed9e8d98aaf7efd88abe6 (patch)
treea6a774c816423e0f3c9d8a5a8bd0cdcd43c702ea /languages.toml
parent8d44459c6ab1e1c7f26c8da4e6afafdb439c8450 (diff)
languages: add templ (#8540)
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index cf2783de..77c629e4 100644
--- a/languages.toml
+++ b/languages.toml
@@ -74,6 +74,7 @@ svlangserver = { command = "svlangserver", args = [] }
swipl = { command = "swipl", args = [ "-g", "use_module(library(lsp_server))", "-g", "lsp_server:main", "-t", "halt", "--", "stdio" ] }
tailwindcss-ls = { command = "tailwindcss-language-server", args = ["--stdio"] }
taplo = { command = "taplo", args = ["lsp", "stdio"] }
+templ = { command = "templ", args = ["lsp"] }
terraform-ls = { command = "terraform-ls", args = ["serve"] }
texlab = { command = "texlab" }
vala-language-server = { command = "vala-language-server" }
@@ -2998,3 +2999,16 @@ roots = []
[[grammar]]
name = "gemini"
source = { git = "https://git.sr.ht/~sfr/tree-sitter-gemini", rev = "3cc5e4bdf572d5df4277fc2e54d6299bd59a54b3" }
+
+[[language]]
+name = "templ"
+scope = "source.templ"
+file-types = ["templ"]
+roots = ["go.work", "go.mod"]
+comment-token = "//"
+indent = { tab-width = 2, unit = " " }
+language-servers = [ "templ" ]
+
+[[grammar]]
+name = "templ"
+source = { git = "https://github.com/vrischmann/tree-sitter-templ", rev = "ea56ac0655243490a4929a988f4eaa91dfccc995" }