rustowl icon indicating copy to clipboard operation
rustowl copied to clipboard

Helix support

Open medzernik opened this issue 10 months ago • 15 comments

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

medzernik avatar Feb 13 '25 21:02 medzernik

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

hoichi avatar Feb 17 '25 15:02 hoichi

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

tqwewe avatar Feb 18 '25 21:02 tqwewe

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.

ShiromMakkad avatar Feb 18 '25 21:02 ShiromMakkad

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

bq-wrongway avatar Feb 23 '25 19:02 bq-wrongway

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.

cordx56 avatar Feb 23 '25 22:02 cordx56

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

cordx56 avatar Feb 24 '25 07:02 cordx56

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

bq-wrongway avatar Feb 24 '25 08:02 bq-wrongway

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

medzernik avatar Feb 25 '25 19:02 medzernik

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.

Bounty-Seeker avatar Mar 01 '25 12:03 Bounty-Seeker

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.

cordx56 avatar Mar 01 '25 13:03 cordx56

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

cordx56 avatar Mar 01 '25 13:03 cordx56

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 🤷🏻

hoichi avatar Mar 03 '25 07:03 hoichi

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 avatar Mar 03 '25 13:03 medzernik

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

hoichi avatar Mar 03 '25 14:03 hoichi

🤖 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.

github-actions[bot] avatar Jul 22 '25 07:07 github-actions[bot]