cordx56/rustowl

Helix support

Opened this issue ยท 15 comments

I tried getting it to run with Helix, but having some issues. Any ideas how?

Ok, I'm just passing by, but let me be that guy. What kind of issues? And what's your config?

I'm confused.. Helix support how? There's no plugin system for Helix yet

It has support for custom lsps: https://docs.helix-editor.com/guides/adding_languages.html. Or do you need more for doing the highlighting?

I tried following that guide, but I couldn't get it working, although I couldve spent more time.

Im also trying to make this work with helix, just im wondering what is rustowlc then there is cargo-owl and cargo-owlsp, which one is just lsp that we should use inside of the helix settings ?
//edit
so i assume its cargo-owlsp, i will try to add this is language and then setup language-servers setting for rust.
if i manage to get it to work il update

Sorry for lack of documentation.
yes, cargo-owlsp is an LSP server.
The LSP server implements rustowl/cursor method which to obtain a list of underlines.
I will write documents as soon as possible. Maybe it will be done today.

I wrote documentation here.
https://github.com/cordx56/rustowl/blob/main/docs/lsp-spec.md

Thank you very much, i will try to get this working tonight and if it does then add pr to document the process

Ok, I'm just passing by, but let me be that guy. What kind of issues? And what's your config?

[language-server]
# owlsp = { command = "rustup", args=["run", "nightly", "cargo-owlsp"] }

# [[language]]
# name="rust"
# language-servers = ["owlsp"]

I tried this, and a few other combinations, but to no avail

I believe the problem with Helix integration is that RustOwl uses its own custom requests ('rustowl/cursor') to work. Helix as far as I am aware currently has no way to call these custom requests. In order for it to work we would need either rustowl to only use requests and responses in the LSP spec or for Helix to add some way to handle custom requests.

The motivation to visualize a wide range of variations is specific to RustOwl, and I have concluded that it cannot be achieved within the specifications of an LSP.

So, we need to wait for Helix to implement custom LSP method calls and underlining with color.

Also, we have to implement a plugin for Helix. It is not their work.

AFAIK, Helix has no plugins yet (they plan to implement them at some point though), so if pure LSP is not the answer, it seems like nothing can be done at this point ๐Ÿคท๐Ÿป

AFAIK, Helix has no plugins yet (they plan to implement them at some point though), so if pure LSP is not the answer, it seems like nothing can be done at this point ๐Ÿคท๐Ÿป

There is a plugin support planned that will use Scheme (afaik, unless they changed the suggested language) for writing the plugins

@medzernik Ah, right, there's a draft PR

๐Ÿค– Bot: Issue has not seen activity in 30 days and will therefore be marked as stale. It will be closed in 7 days if no further response is found.