-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Before you start
- You've headed over to tinymist and can confirm that the issue does not exist with the VS Code plugin for tinymist.
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 withtypst-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:
typst-preview.nvim
- Version: 1.3.0
- Commit:
ddcc711
- Branch:
master
- Source: chomosuke/typst-preview.nvim
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.