From 7971835303f1d73272e7b2170ecd3f2eb5680b40 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 6 Oct 2024 13:12:46 +0000 Subject: s15 --- helix/languages.toml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 helix/languages.toml (limited to 'helix/languages.toml') 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" } + -- cgit v1.2.3