diff options
| author | Brad Clawsie <brad@b7j0c.org> | 2023-11-28 16:17:33 -0600 |
|---|---|---|
| committer | Brad Clawsie <brad@b7j0c.org> | 2023-11-28 16:17:33 -0600 |
| commit | a8661df1e5053d9feea62e775d5763bb01fe6d3c (patch) | |
| tree | 5c8bdca3d56becd3cae0ac48c28482cc97e4fabb /helix | |
| parent | 2ba4e4b73577b311b0f8ab700a72f8bfeaa20b0c (diff) | |
helix + deno
Diffstat (limited to 'helix')
| -rw-r--r-- | helix/languages.toml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/helix/languages.toml b/helix/languages.toml index a6e87d6..1d775ad 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -10,3 +10,36 @@ formatter = { command = "gofumpt" } name = "perl" file-types = ["t", "pl", "pm"] indent = { tab-width = 2, unit = " " } + +# https://github.com/helix-editor/helix/wiki/How-to-install-the-default-language-servers#deno +[[language]] +name = "typescript" +shebangs = ["deno"] +roots = ["deno.json", "deno.jsonc"] +file-types = ["js", "ts", "jsx", "tsx"] +language-servers = ["deno-lsp"] +auto-format = true +indent = { tab-width = 2, unit = " " } + +[language-server.deno-lsp] +command = "deno" +args = ["lsp"] +environment = { NO_COLOR = "1" } + +[language-server.deno-lsp.config.deno] +enable = true +# Uncomment to enable completion of unstable features of Deno +# unstable = true +# Uncomment to cache dependencies on save +# cacheOnSave = true +# Enable completion of importing from registries +# Enable completion of function calls +suggest = { completeFunctionCalls = false, imports = { hosts = { "https://deno.land" = true } } } +# suggest = { imports = { hosts = { "https://deno.land" = true, "https://crux.land" = true, "https://x.nest.land" = true } } } +# Uncomment to enable inlay hints +# inlayHints.parameterNames.enabled = "all" +# inlayHints.parameterTypes.enabled = true +# inlayHints.variableTypes.enabled = true +# inlayHints.propertyDeclarationTypes.enabled = true +# inlayHints.functionLikeReturnTypes.enabled = true +# inlayHints.enumMemberValues.enabled = true |
