nvarner / typst-lsp

[Deprecated] An early language server for Typst, plus a VS Code extension
MIT License
1.2k stars 77 forks source link

onType option not woking in Helix editor #418

Closed devanlooches closed 10 months ago

devanlooches commented 10 months ago

Issue

Here is my lsp configuration for the Helix editor:

[[language]]
name = "typst"
scope = "source.typst"
injection-regex = "^typ(st)?$"
file-types = ["typ"]
roots = []
language-servers = ["typst-lsp", "prosemd"]
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'
'$' = '$'

[language-server.typst-lsp]
command = "typst-lsp"
config = { exportPdf = "onType" }
roots = []
comment-token = "//"
indent = { tab-width = 2, unit = " " }
formatter = { command = "typstfmt" }
text-width = 100
rulers = [100]
soft-wrap.wrap-at-text-width = true

Even though I set the export-pdf option to onType, it does not compile onType and instead only compiles onSave. Thanks in advance for any help!

devanlooches commented 10 months ago

Ah never mind, looks like the issue resolved itself...