Helix Languages - LTex Spell Checking

I ❤️ Helix...

Not as much as my whanau, but still it's up there.

I've been getting back into blogging and writing documentation, and as part of that I've been getting feedback that I have spelling mistakes in my MarkDown and reStructured based docs. Well I thought, there must be an LSP for it, and behold LTex is the best of the bunch.

So I dutifully followed this (guide)[https://blog.getreu.net/20220828-tp-note-new8/], but hold on the default language is en-US, I'm either en-NZ or en-GB. So I spent a bunch of time trying to get it to work, and it wasn't until I found a comment at tucked away in a PR that sorted me out. Turns out you need to have the LSP config nd the LSP definition before the Language definition.

[language-server.ltex]
command = "/opt/ltex/bin/ltex-ls"

[language-server.ltex.config.ltex]
language = "en-NZ"
dictionary = { "en-NZ" = ["A_NONESENSE_WORD"] }

[[language]]
name = "rst"
language-servers = [{ name = "ltex"}]
file-types = ["rst"]
scope = "text.rst"
roots = []