Skip to content

deno lsp support #2536

Answered by DrSensor
DrSensor asked this question in Q&A
May 22, 2022 · 14 comments · 24 replies
Discussion options

You must be logged in to vote

Alright it works now!

Here is my .config/helix/languages.toml

[[language]]
name = "javascript"
scope = "source.js"
injection-regex = "^(js|javascript)$"
file-types = ["js", "jsx", "mjs"]
shebangs = ["deno", "node"]
roots = ["deno.json", "package.json", "tsconfig.json"]
comment-token = "//"
config = { enable = true, lint = true, unstable = true }
language-server = { command = "deno", args = ["lsp"], language-id = "javascript" }
indent = { tab-width = 2, unit = "  " }

[[language]]
name = "jsx"
scope = "source.jsx"
injection-regex = "jsx"
file-types = ["jsx"]
shebangs = ["deno", "node"]
roots = ["deno.json", "package.json", "tsconfig.json"]
comment-token = "//"
config = { enable = true, lint

Replies: 14 comments 24 replies

Comment options

You must be logged in to vote
8 replies
@DrSensor
Comment options

@the-mikedavis
Comment options

@imtheaman
Comment options

@the-mikedavis
Comment options

@imtheaman
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DrSensor
Comment options

You must be logged in to vote
2 replies
@David-Else
Comment options

@Siilwyn
Comment options

Comment options

You must be logged in to vote
3 replies
@David-Else
Comment options

@Siilwyn
Comment options

@David-Else
Comment options

Comment options

You must be logged in to vote
3 replies
@dcompoze
Comment options

@nathansmith11170
Comment options

@David-Else
Comment options

Comment options

You must be logged in to vote
3 replies
@AumyF
Comment options

@jakenvac
Comment options

@jakenvac
Comment options

Comment options

You must be logged in to vote
1 reply
@ar37-rs
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Cyberphinx
Comment options

Comment options

You must be logged in to vote
1 reply
@sigmaSd
Comment options

Comment options

You must be logged in to vote
1 reply
@sigmaSd
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@timbod7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet