summaryrefslogtreecommitdiff
path: root/helix/languages.toml
blob: ee3737b2db2e13dc719582a3ec4c5bb0ddd42230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# custom LSP file

[[language]]
name = "json"
[language-server.vscode-json-language-server]
command = "vscode-json-languageserver"
args = ["--stdio"]
[language-server.vscode-json-language-server.config]
provideFormatter = true
json = {validate = {enable = true}}

[[language]]
name = "tsx"
auto-format = true
formatter = {command = "prettier", args = ["--parser", "typescript"]}
indent = { tab-width=2, unit = "  " }

[[language]]
name = "typescript"
auto-format = true
formatter = {command = "prettier", args = ["--parser", "typescript"]}
indent = { tab-width=2, unit = "  " }

[language-server.typescript-language-server.config.typescript.inlayHints]
includeInlayEnumMemberValueHints = true
includeInlayFunctionLikeReturnTypeHints = true
includeInlayFunctionParameterTypeHints = false 
includeInlayParameterNameHints = "none" 
includeInlayParameterNameHintsWhenArgumentMatchesName = false 
includeInlayPropertyDeclarationTypeHints = false 
includeInlayVariableTypeHints = false

[[language]]
name = "rust"
formatter = {command = "rustfmt"}
auto-format = true
indent = { tab-width = 2, unit = "  " }

[language-server.rust-analyzer.config]
inlayHints.bindingModeHints.enable = false
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false

[[language]]
name = "nix"
auto-format = true
formatter = { command = "alejandra"}

[[language]]
name = "hoon"
scope = "source.hoon"
injection-regex = "hoon"
file-types = ["hoon"]
roots = []
indent = { tab-width = 2, unit = "  " }
comment-token = "::"

[[grammar]]
name = "hoon"
# source = { git = "https://github.com/ryjm/tree-sitter-hoon-1", rev = "3c39e3238df152029377959beca2eb2edcbe6937" }
source = { git = "https://github.com/urbit-pilled/tree-sitter-hoon", rev = "a24c5a39d1d7e993a8bee913c8e8b6a652ca5ae8" }