Skip to content

Any help getting the LSP working with Helix? #294

Answered by bancomputers
bancomputers asked this question in Help
Discussion options

You must be logged in to vote

I found all my solutions in rather roundabout ways, with a few caveats. I'll list them here in case anyone else might find them useful.

First, I replaced my 'languages.toml' entry:

[[language]]
name = "markdown"
scope = "source.md"
injection-regex = "md|markdown|
file-types = ["md", "markdown]
roots = [".zk"]
language-server = { command = "zk", args=["lsp"] }

This is modeled after the default 'languages.toml' included with helix.

(Psst... add this to the same file to get some sweet syntax highlighting!)

[[grammar]]
name = "markdown"
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown" }

This…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quesada
Comment options

@sumit-sahrawat
Comment options

Answer selected by bancomputers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants