Files
chezmoi/dot_config/helix/languages.toml
2025-08-02 18:15:15 +02:00

116 lines
2.9 KiB
TOML

[language-server.rust-analyzer.config.check]
command = "clippy"
[language-server.rust-analyzer.config.cargo]
allFeatures = true
[language-server.rust-analyzer.buildScripts]
enable = true
[language-server.rust-analyzer.config.procMacro.ignored]
#async-trait = ["async_trait"]
tonic = ["async_trait"]
mockall = ["automock"]
mockall_double = ["double"]
automock = ["automock"]
double = ["double"]
#leptos_macro = ["server", "component"]
[language-server.rust-analyzer.config.diagnostics]
disabled = ["macro-error"]
[[language]]
name = "graphql"
scope = "source.graphql"
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-server.graphql-language-service]
command = "graphql-lsp"
args = ["server", "-m", "stream"]
[[language]]
name = "toml"
formatter = { command = "taplo", args = ["fmt", "-"] }
auto-format = true
[[grammar]]
name = "graphql"
source = { git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe" }
[[language]]
name = "typescript"
scope = "source.ts"
injection-regex = "(ts|typescript)"
file-types = ["ts", "mts", "cts"]
language-id = "typescript"
shebangs = ["deno", "ts-node"]
language-servers = ["typescript-language-server"]
indent = { tab-width = 2, unit = " " }
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
auto-format = true
[language.debugger]
command = "codelldb"
name = "codelldb"
port-arg = "--port {}"
transport = "tcp"
[[language.debugger.templates]]
name = "binary"
request = "launch"
[[language.debugger.templates.completion]]
completion = "filename"
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 = " " }
[language-server.buf]
command = "buf"
args = ["beta", "lsp", "--timeout", "0"]
[[language]]
name = "protobuf"
scope = "source.proto"
injection-regex = "proto"
file-types = ["proto"]
language-servers = ["buf"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
indent = { tab-width = 2, unit = " " }
grammar = "proto"
[[grammar]]
name = "proto"
source = { git = "https://github.com/sdoerner/tree-sitter-proto", rev = "778ab6ed18a7fcf82c83805a87d63376c51e80bc" }
[[language]]
name = "noil"
scope = "source.noil"
injection-regex = "noil"
file-types = ["noil"]
auto-format = true
indent = { tab-width = 3, unit = " " }
formatter = { command = "noil", args = ["fmt"] }
[[grammar]]
name = "noil"
source = { git = "https://git.front.kjuulh.io/kjuulh/tree-sitter-noil.git", rev = "2f295629439881d0b9e89108a1296881d0daf7b9" }