docs: mention background preview in helix docs (#1829)

* Update helix.typ

add background.args

* Update helix.typ
This commit is contained in:
Tache David Stefan 2025-06-22 10:25:27 +03:00 committed by GitHub
parent 59c6e1c48e
commit 4658fe7218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ Note: With that configuration, if youre seeing a file that is not reachable b
= Extra Settings
To configure language server, you can edit the `language-server.tinymist` section. For example, if you want to export PDF on typing and output files in `$root_dir/target` directory:
To configure the language server, edit the `language-server.tinymist` section. For example, if you want to export PDF on typing and output files in `$root_dir/target` directory:
```toml
[language-server.tinymist]
@ -63,5 +63,13 @@ command = "tinymist"
config = { exportPdf = "onType", outputPath = "$root/target/$dir/$name" }
```
To enable a live preview you can use the `preview.background`:
```toml
[language-server.tinymist]
command = "tinymist"
config = { preview.background.enabled = true", preview.background.args = ["--data-plane-host=127.0.0.1:23635", "--invert-colors=never", "--open"] }
```
See #github-link("/editors/neovim/Configuration.md")[Tinymist Server Configuration]
for references.