I already loved Helix (best editor in the world), but yesterday @haeckerfelix showed me that Language Servers can go much further than I thought.

TIL that Helix and Typst are a match made in heaven, thanks to the Language Server tinymist.

https://ergaster.org/til/helix-typst-match-in-heaven/

#helixEditor #typst

TIL that Helix and Typst are a match made in heaven

Helix makes extensive use of Language Servers, but tinymist pushes it beyond what I thought was possible.

Ergaster

@thibaultamartin @haeckerfelix

Yes, I also use #typst with #HelixEditor. But I am still missing a spell/grammar checker solution that works for Typst and that ideally not only covers English, but other languages as well.

Do you know any such Language Servers?

@hetare11 @haeckerfelix I use the Harper Language Server for that

https://writewithharper.com/

Harper | Privacy-First Offline Grammar Checker

Harper checks your writing instantly—fast, lightweight and utterly private—so you can polish every clause without surrendering a single keystroke.

Harper

@thibaultamartin @haeckerfelix

Thanks for the hint. The range of supported formal languages is pretty good. Alas, only English as natural language is supported.

@thibaultamartin @hetare11 @haeckerfelix i tried it with the browser and with the lsp and in both cases it checked on every single keystroke. So it refreshed the error squiqqles while I was still typing which I found very distracting.

Is that not bothering you or did you find a workaround?

@ju @hetare11 @haeckerfelix it’s slightly annoying but I don’t mind this much. Not distracting enough not to use it!

@ju @hetare11 @haeckerfelix it looks like there’s an issue about it (that references another issue too)

https://github.com/Automattic/harper/issues/2935

[Feature Request] "Wait for Word Completion" / Spacebar Delay for active typing · Issue #2935 · Automattic/harper

Currently, Harper scans text and underlines errors letter-by-letter in real-time. While the speed is impressive, it creates a frustrating user experience during active typing because red error line...

GitHub

@hetare11 @thibaultamartin @haeckerfelix

I'd like to have a #typst language checker, too, but I don't think it exists yet. Edit: #typesetter does English in 0.12 .

I'm working on single typst sources with output in two languages, NL/EN, using this function as a single typst source file:
#let ennl = (en, nl) => { [#nl] }
//#let ennl = (en, nl) => { [#en] }

#Typesetter can find the arguments in its preview, and a language checker would need to cooperate with this somehow.

@jayvii

Thanks for the hint. ltex-ls is the one I am currently using. But it does not support typst. More over, I cannot easily add words to a user specific dictionary—which seems to work with harper-ls. So, I thought, I give it a try. There does not seem to a one-stop solution for me yet.