chomosuke / typst-preview.nvim

Low latency typst preview for Neovim
GNU General Public License v3.0
254 stars 16 forks source link

Unable to open preview in browser normally in WSL #5

Closed Parsifa1 closed 9 months ago

Parsifa1 commented 10 months ago

image all the required are download

When using the ":TypstPreview" command, nothing happened

Parsifa1 commented 10 months ago

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.

Parsifa1 commented 10 months ago

@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

Parsifa1 commented 10 months ago

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

chomosuke commented 9 months ago

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

chomosuke commented 9 months ago

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 :).

Parsifa1 commented 9 months ago

thanks a lot !