nvarner / typst-lsp

A brand-new language server for Typst, plus a VS Code extension
MIT License
1.19k stars 76 forks source link

onType option not woking in Helix editor #418

Closed devanlooches closed 7 months ago

devanlooches commented 7 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 7 months ago

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