chomosuke / typst-preview.nvim

Low latency typst preview for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to open preview in browser normally in WSL

Parsifa1 opened this issue · comments

commented

image
all the required are download

When using the ":TypstPreview" command, nothing happened

commented

It seems that my current working folder is not the folder where the typst file is located. Thank you for your plug-in. The problem is solved.

commented

@chomosuke
i think the default setting should be like this:

 get_root = function(bufnr_of_typst_buffer)
            return vim.fn.fnamemodify(vim.fn.expand('%:p'), ':h')
        end,

just because sometimes you maybe open an .typ in history files, and the cwd may not changed

commented

Whenever I type a enter in the typst source file, this error will appear:
image

Hi, sorry I don't have time to attempt to reproduce your issue until this weekend. But this could be a fixed by #6

Hello there, I've so far be unable to reproduce the issue, however it is possible that the recent release 0.1.2 fixed it. Feel free to reopen this issue if the new release did not fix the issue for you but do please provide more detail to help me reproduce your issue :).

commented

thanks a lot !