mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 18:28:02 +00:00
docs: mention background preview in helix docs (#1829)
* Update helix.typ add background.args * Update helix.typ
This commit is contained in:
parent
59c6e1c48e
commit
4658fe7218
1 changed files with 9 additions and 1 deletions
|
@ -55,7 +55,7 @@ Note: With that configuration, if you’re 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue