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.

@thibaultamartin oh WOW there really needs to be a markdown version of this
@thibaultamartin @haeckerfelix what? The @typst live preview is open source? I thought that was part of the proprietary web version

@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

Preview Feature - Tinymist Docs

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

tinymist/crates/typst-preview at main · Myriad-Dreamin/tinymist

Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst]. - Myriad-Dreamin/tinymist

GitHub
@thibaultamartin @haeckerfelix I love typst very much.

And the preview is awesome, but like my previews a bit too clean, I was using qutebrowser with all the UI disabled just for typst preview and it gave up on me recently. Then I decided to make this. I know it's overkill but I had some fun with claude after writing the bash script

https://github.com/scientiac/previewfox.

GitHub - scientiac/previewfox: 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)

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

GitHub

@thibaultamartin For documents with long paragraphs, I suggest adding the following lines to the languages.toml file:

[[language]]
name = "typst"
soft-wrap.enable = true

@haeckerfelix

@thibaultamartin @haeckerfelix forgot to ask: what program do you use for screen recording?
@ju @haeckerfelix for that post I’ve used OBS, since it’s very flexible and I’m used to it