Currently the TypstPreview command will spawn the typst-preview binary with --static-file-host 127.0.0.1:0, which will let typst-preview choose a random port.
|
'--static-file-host', |
|
'127.0.0.1:0', |
It would be nice if there's an port option in the typst-preview.nvim config for users to choose a port. I'm willing to make an PR for this.
Currently the
TypstPreviewcommand will spawn the typst-preview binary with--static-file-host 127.0.0.1:0, which will let typst-preview choose a random port.typst-preview.nvim/lua/typst-preview/servers/factory.lua
Lines 30 to 31 in 15eaaff
It would be nice if there's an
portoption in the typst-preview.nvim config for users to choose a port. I'm willing to make an PR for this.