-
This discussion is similar to this comment. By default languege settings, Thanks to Wiki page, I already understand that writing these settings in [[language]]
name = "typescript"
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc"]
file-types = ["ts"]
language-servers = ["deno-lsp"]
auto-format = true
[language-server.deno-lsp]
command = "deno"
args = ["lsp"]
environment = { NO_COLOR = "1" }
[language-server.deno-lsp.config.deno]
enable = true It's hard to write this in the project setup every time... I tried to create a new language setting with name $ hx --health typescript_deno
Configured language servers:
✓ deno: /path/to/bin/deno
Configured debug adapter: None
Configured formatter: None
Highlight queries: ✘
Textobject queries: ✘
Indent queries: ✘ Settings: # ~/.config/helix/languages.toml
[[language]]
name = "typescript_deno" # changed from typescript
scope = "source.ts" # added
grammar = "typescript" # added
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc"]
file-types = ["ts"]
language-servers = ["deno-lsp"]
auto-format = true
[language-server.deno-lsp]
command = "deno"
args = ["lsp"]
environment = { NO_COLOR = "1" } # project/.helix/languages.toml
[language-server.deno-lsp.config.deno]
enable = true |
Beta Was this translation helpful? Give feedback.
See #8372 (reply in thread)