-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[WIP] TS-based spell-checking with hunspell #6343
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Connor Lay (Clay) <[email protected]>
This might well be the best solution for intelligent spell checking for comments, but with Helix's new multiple language servers feature and https://github.com/valentjn/ltex-ls (soon to get a long needed update, the author has returned to the project) maybe that would be a better solution? In the readme it says:
I have not checked out that feature yet as we needed the multiple language servers to make it workable. My settings:
|
|
More imoortantly ltex-ls can only check comments in some languages (and development is not active) and there is no checking for identifiers. With TS based spell checking you can spellchecker variable names etc. |
Development is active again, check my link. I would be very happy to get this hunspell PR merged, I just thought I would draw attention to |
I think it's good to have both options indeed, hunspell is low-profile and easily available, with the possibility to switch to a more powerful tool through a language server. If anyone manages to get hunspell-rs to compile within the environment provided by the nix flake, that could be a good way forward. The alternative would be to provide a pure rust impl of hunspell, but i don't have the cycles for that. |
Great t hear |
Based on what we currently have, there are a few options forward:
|
I will look into porting the spell checker to rust. I think there is enough to do on the helix side for now and once.the pure rust check is ready it should be pretty easy to swap out as the API will.be mostly the same. I don't have time to look at this PR in more detail this weekend but in general on the helix side:
Like I said I didn't have the time to check this out in more detail so some of these points could already apply but this is sort of the endgoal for the helix side of things. Swapping out the spell checking library should then be fairly easy. |
Alright, i'll go on with my stub then.
|
(i'm leaving this paused for the moment, waiting for dust to settle on the multiple LSP front) |
yeah that's probably wise. The multi LSP PR is a pretty large change (that is very time intensive to review) |
Oh cool, someone picked this up 😄 |
I dropped it waiting for multiple LSPs to land ^^ |
multiple lsp have landed #2507 |
(NOTE: There's some work ongoing internally now, @the-mikedavis is working on a new spellchecker in https://github.com/helix-editor/spellbook) |
Reference link is not working. |
I'll probably start from scratch when/if i resume working on this. idk what @the-mikedavis has in mind for this (just working on the spellchecker itself, or directly integrating it in helix) |
#3637 (comment) has more info about Mike's plans, also currently the repo is private which is why the link doesn't work |
This is the continuation of #3965
ToDo
master
commitdevenv
setup