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.
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.
@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
@thibaultamartin @hetare11 @haeckerfelix
I'll take a look at 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 looks like there’s an issue about it (that references another issue too)

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...
@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.
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.
@ju @thibaultamartin @typst the preview is part of Tinymist. I don't think it's the same one as the proprietary web version.
https://myriad-dreamin.github.io/tinymist/feature/preview.html
Two ways of previewing a Typst document are provided: PDF Preview: let lsp export your PDF on typed, and open related PDF by your favorite PDF viewer. Web (SVG) Preview: use builtin preview feature. Whenever you can get a web preview feature, it is recommended since it is much faster than PDF preview and provides bidirectional navigation feature, allowing jumping between the source code and the preview by clicking or lsp commands. PDF Preview For non-vscode clients, Neovim client as an example. One who u...

A script to change Firefox UI to have no components, just the content view, made for live previews. (I made this primarily for typst preview) - scientiac/previewfox
@thibaultamartin For documents with long paragraphs, I suggest adding the following lines to the languages.toml file:
[[language]]
name = "typst"
soft-wrap.enable = true