summaryrefslogtreecommitdiff
path: root/helix/languages.toml
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2024-10-06 13:12:46 +0000
committerpolwex <polwex@sortug.com>2024-10-06 13:12:46 +0000
commit7971835303f1d73272e7b2170ecd3f2eb5680b40 (patch)
tree97ce941eb635aa779af00729c3976afc6fece0f8 /helix/languages.toml
parent8d6ba07563abc02b498d31307eecd7463ce65e39 (diff)
s15
Diffstat (limited to 'helix/languages.toml')
-rw-r--r--helix/languages.toml65
1 files changed, 65 insertions, 0 deletions
diff --git a/helix/languages.toml b/helix/languages.toml
new file mode 100644
index 0000000..ee3737b
--- /dev/null
+++ b/helix/languages.toml
@@ -0,0 +1,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" }
+