Skip to content

Commit

Permalink
Add config for Helix editor (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarrk authored Jan 4, 2025
1 parent df9edc5 commit e94c484
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .helix/languages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file configures the Helix editor to use Deno for language support,
# instead of user defaults for JavaScript and TypeScript. Reproduced from:
# https://github.com/helix-editor/helix/wiki/Language-Server-Configurations#deno

[[language]]
name = "javascript"
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc"]
file-types = ["js"]
language-servers = ["deno-lsp"]
auto-format = true
[[language]]
name = "typescript"
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc"]
file-types = ["ts"]
language-servers = ["deno-lsp"]
auto-format = true
[[language]]
name = "jsx"
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc"]
file-types = ["jsx"]
language-servers = ["deno-lsp"]
auto-format = true
[[language]]
name = "tsx"
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc"]
file-types = ["tsx"]
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
suggest = { completeFunctionCalls = false, imports = { hosts = { "https://deno.land" = true } } }

0 comments on commit e94c484

Please sign in to comment.