Skip to content

Helix support #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
medzernik opened this issue Feb 13, 2025 · 14 comments
Open

Helix support #15

medzernik opened this issue Feb 13, 2025 · 14 comments

Comments

@medzernik
Copy link

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

@hoichi
Copy link

hoichi commented Feb 17, 2025

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

@tqwewe
Copy link

tqwewe commented Feb 18, 2025

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

@ShiromMakkad
Copy link

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.

@bq-wrongway
Copy link

bq-wrongway commented Feb 23, 2025

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

@cordx56
Copy link
Owner

cordx56 commented Feb 23, 2025

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
Copy link
Owner

cordx56 commented Feb 24, 2025

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

@bq-wrongway
Copy link

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

@medzernik
Copy link
Author

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

@Bounty-Seeker
Copy link

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.

@cordx56
Copy link
Owner

cordx56 commented Mar 1, 2025

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
Copy link
Owner

cordx56 commented Mar 1, 2025

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

@hoichi
Copy link

hoichi commented Mar 3, 2025

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

@medzernik
Copy link
Author

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

@hoichi
Copy link

hoichi commented Mar 3, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants