-
|
Based on what you said about finding the built-in web preview feature in neovim's possibly incorrect typst configuration, I tried using the following configuration: {
"lsp": {
"tinymist": {
"settings": {
"exportPdf": "onSave",
"outputPath": "$root/$name",
"preview.background.enabled": true,
"preview.background.args": [
"--data-plane-host=127.0.0.1:23635",
"--invert-colors=auto"
]
}
}
}
}export pdf on save function runs well, but preview in background(which will serve on 127.0.0.1:23633) failed. If the plugin does implement backgound preview, how should I configure it? The other question is, I know that the plugin does have very little buffer control over zed, and if this configuration works, is it possible to map code from browsers to zed? Otherwise, if the background preview is only limited to the preview function, then you only need to execute |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
ohno ,I'm sorry that I should have modified my code directly in place just now. I meant that there was no problem(like typo) with my actual configuration, but there was a typo when I entered the github issue(I fix it in place already), and other problems were the same, as the background preview and more. (I'm a China user, and my English level is bad, sorry!!) Thanks to your help! |
Beta Was this translation helpful? Give feedback.
-
|
I also have not been able to set the arguments! There have been some other discussions around a similar issue which I think mention the correct format: #21. However, this still didn't work for me. This becomes an issue in MacOS and devcontainers (we finally have devcontainers!) as {
"name": "Typst Development Environment",
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "vscode",
"appPort": [23634],
"postStartCommand": "socat TCP-LISTEN:23634,bind=0.0.0.0,fork TCP:127.0.0.1:23635 &",
"features": {}
}Not necessarily an answer to the question, but might be useful if the listening address is an issue. |
Beta Was this translation helpful? Give feedback.
-
|
Forgot to say, I can pass arguments by these config in "tinymist": {
"initialization_options": {
"preview": {
"background": {
"enabled": true,
},
},
},
"settings": {
"formatterMode": "typstyle",
"formatterIndentSize": 4,
"exportPdf": "onSave",
"outputPath": "$root/$name",
"preview.background.args": [
"--data-plane-host=127.0.0.1:23635",
"--invert-colors=auto",
],
},
},this works! @seb-hyland Sorry for a long time, I found this solution many months ago but I forgot to post this setting here. |
Beta Was this translation helpful? Give feedback.

Forgot to say, I can pass arguments by these config in
settings.jsonthis works! @se…