feat: add tmpl
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
48424d8c29
commit
22552e9c25
@ -22,9 +22,9 @@ injection-regex = "graphql"
|
||||
file-types = ["graphql", "gql"]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
language-servers = [ "graphql-language-service" ]
|
||||
indent = {tab-width = 2, unit = " "}
|
||||
formatter = { command = "prettier", args = ["--parser=graphql"]}
|
||||
language-servers = ["graphql-language-service"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
formatter = { command = "prettier", args = ["--parser=graphql"] }
|
||||
|
||||
[language-server.graphql-language-service]
|
||||
command = "graphql-lsp"
|
||||
@ -37,7 +37,7 @@ auto-format = true
|
||||
|
||||
[[grammar]]
|
||||
name = "graphql"
|
||||
source = {git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe"}
|
||||
source = { git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe" }
|
||||
|
||||
[[language]]
|
||||
name = "typescript"
|
||||
@ -46,7 +46,7 @@ injection-regex = "(ts|typescript)"
|
||||
file-types = ["ts", "mts", "cts"]
|
||||
language-id = "typescript"
|
||||
shebangs = ["deno", "ts-node"]
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
language-servers = ["typescript-language-server"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
|
||||
auto-format = true
|
||||
@ -67,3 +67,13 @@ name = "binary"
|
||||
[language.debugger.templates.args]
|
||||
program = "{0}"
|
||||
runInTerminal = true
|
||||
|
||||
[[language]]
|
||||
name = "gotmpl"
|
||||
scope = "source.gotmpl"
|
||||
injection-regex = "gotmpl"
|
||||
file-types = ["gotmpl", "tmpl"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = ["gopls"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
Loading…
Reference in New Issue
Block a user