Before you start
Describe the bug
Cursors are supposed to sync when clicked in the browser, but the behavior is inconsistent — it only occurs sporadically and does not trigger on every click. Additionally, when moving the cursor in the editor, the browser preview does not update to reflect the current position, which feels like a missing feature or potentially a bug.
To Reproduce
Steps to reproduce the behavior:
- Open a
.typ file in Neovim with typst-preview.nvim enabled.
- Launch the preview in the browser.
- Click at various locations in the preview.
- Observe that cursor sync with the editor is inconsistent.
- Move the cursor within the editor.
- Notice that the browser does not follow the cursor location.
Expected behavior
Clicking in the browser should consistently sync the cursor location back to Neovim. Similarly, when moving the cursor within Neovim, the browser preview should scroll or update accordingly to maintain synchronization.
Screenshots/Video
Video: https://files.catbox.moe/o2zt7n.mp4
Debug Logs: https://0x0.st/8OJK.txt
Desktop (please complete the following information):
- OS: Fedora Linux 6.13.10-200.fc41.x86_64
- Plugin Information:
Additional context
Log and video attachments provided. This behavior was observed using the tinymist backend. While this issue does not exist with the VS Code plugin for tinymist, it may be specific to the Neovim integration.
Before you start
Describe the bug
Cursors are supposed to sync when clicked in the browser, but the behavior is inconsistent — it only occurs sporadically and does not trigger on every click. Additionally, when moving the cursor in the editor, the browser preview does not update to reflect the current position, which feels like a missing feature or potentially a bug.
To Reproduce
Steps to reproduce the behavior:
.typfile in Neovim withtypst-preview.nvimenabled.Expected behavior
Clicking in the browser should consistently sync the cursor location back to Neovim. Similarly, when moving the cursor within Neovim, the browser preview should scroll or update accordingly to maintain synchronization.
Screenshots/Video
Video: https://files.catbox.moe/o2zt7n.mp4
Debug Logs: https://0x0.st/8OJK.txt
Desktop (please complete the following information):
typst-preview.nvimddcc711masterAdditional context
Log and video attachments provided. This behavior was observed using the
tinymistbackend. While this issue does not exist with the VS Code plugin fortinymist, it may be specific to the Neovim integration.