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"]
|
file-types = ["graphql", "gql"]
|
||||||
auto-format = true
|
auto-format = true
|
||||||
comment-token = "//"
|
comment-token = "//"
|
||||||
language-servers = [ "graphql-language-service" ]
|
language-servers = ["graphql-language-service"]
|
||||||
indent = {tab-width = 2, unit = " "}
|
indent = { tab-width = 2, unit = " " }
|
||||||
formatter = { command = "prettier", args = ["--parser=graphql"]}
|
formatter = { command = "prettier", args = ["--parser=graphql"] }
|
||||||
|
|
||||||
[language-server.graphql-language-service]
|
[language-server.graphql-language-service]
|
||||||
command = "graphql-lsp"
|
command = "graphql-lsp"
|
||||||
@ -37,7 +37,7 @@ auto-format = true
|
|||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "graphql"
|
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]]
|
[[language]]
|
||||||
name = "typescript"
|
name = "typescript"
|
||||||
@ -46,7 +46,7 @@ injection-regex = "(ts|typescript)"
|
|||||||
file-types = ["ts", "mts", "cts"]
|
file-types = ["ts", "mts", "cts"]
|
||||||
language-id = "typescript"
|
language-id = "typescript"
|
||||||
shebangs = ["deno", "ts-node"]
|
shebangs = ["deno", "ts-node"]
|
||||||
language-servers = [ "typescript-language-server" ]
|
language-servers = ["typescript-language-server"]
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
|
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
|
||||||
auto-format = true
|
auto-format = true
|
||||||
@ -67,3 +67,13 @@ name = "binary"
|
|||||||
[language.debugger.templates.args]
|
[language.debugger.templates.args]
|
||||||
program = "{0}"
|
program = "{0}"
|
||||||
runInTerminal = true
|
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