You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when use markdown source in blink.cmp it show error: failed to get completions with error: .../neovim/0.10.3/share/nvim/runtime/lua/vim/treesitter.lua:382: Invalid position: row and col must be non-negative
Expected behavior
show not show error notify
Healthcheck output
render-markdown: require("render-markdown.health").check()
render-markdown.nvim [version] ~
- OK plugin 7.8.9
- OK neovim >= 0.10
render-markdown.nvim [configuration] ~
- OK valid
render-markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled
- OK latex: parser installed
render-markdown.nvim [icons] ~
- OK using: mini.icons
render-markdown.nvim [executables] ~
- WARNING latex2text: not installed
- ADVICE:
- Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }
render-markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK obsidian: installed but should not conflict
I have updated this plugin to the latest version using my plugin manager
I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.
Additional information
No response
The text was updated successfully, but these errors were encountered:
## Details
Issue: #310
`nvim-cmp` passes the cursor position as a (1,1)-indexed value by
adjusting the column output of `nvim_win_get_cursor`.
`blink.cmp` does not make this adjustment and directly passes the
(1,0)-indexed value from `nvim_win_get_cursor`.
Previously we did not handle this difference and would subtract 1 from
the column resulting in an exception due to negative values. The fix is
to account for this difference when adjusting the values to treesitter's
(0,0)-indexed APIs.
I'm not 100% sure why this did not crop up before while testing but
likely related to this note from the `0.11.0` release:
> [!IMPORTANT]
> Blink.cmp now fetches the completion items immediately upon entering
> insert mode by default. More ideas for prefetching are being explored!
So we still had the off by 1 column issue but since items were not being
pre-fetched and due to the trigger characters configuration the column
would always be > 0, so it would not error.
Neovim version (nvim -v)
0.10.3
Neovim distribution
LazyVim
Operating system
MacOS
Terminal emulator / GUI
WezTerm
Describe the bug
when use markdown source in blink.cmp it show error: failed to get completions with error: .../neovim/0.10.3/share/nvim/runtime/lua/vim/treesitter.lua:382: Invalid position: row and col must be non-negative
Expected behavior
show not show error notify
Healthcheck output
Plugin configuration
Plugin error log
Confirmations
Additional information
No response
The text was updated successfully, but these errors were encountered: