Skip to content

How to configure backgound preview in settings #27

@YinMo19

Description

@YinMo19

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 tinymist preview in the cli, which can be quickly executed using a zed task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions