# 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" }