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
Blink behaves weirdly if completion items contain special characters.
I'm sure the clojure language is a pretty good stress test for blink because clojure vars can and do contain a larger range of 'special' characters than other languages.
A very common one is the ! character to indicate mutation or side-effects and -> or >/< characters.
For example if I have a lib exporting the following:
The first autocomplete attempt shows only do-something when it should show all three exported functions. Accepting it does inserts the correct content into the buffer, which is good.
Commenting out do-something as an exported var in the lib module results in both the two special-character containing exports to now show as expected.
Accepting either of them inserts the incorrect content into the buffer (double-prefixed with their lib/ identifier).
Attempting to auto-complete after the > character hides the autocompletion menu when, for clojure, I expect it to remain. This should still be considered a keyword (should this be made configurable in blink?)
Relevant configuration
No response
neovim version
0.10.2
blink.cmp version
main
The text was updated successfully, but these errors were encountered:
I guess this is kinda multiple issues in one, but they are all somewhat related I think so leaving it bundled to not make more noise. I am happy to break this into multiple issues though if you prefer. Let me know!
I think what I see is the same issue (or at least related), but in this case with function parameters that contain special characters (dots/periods):
Typing legend shows available parameters. Note it includes legend.key and legend.key.height
With legend.key, legend.key.height is no longer offered as completion.
Continuing to type legend.key.s... showing legend.key.size and legend.key.spacing. Once the prefix includes a special character, blink appears to only look back to the previous special character.
Inserting only replaces the typed siz prefix, duplicating legend.key
Make sure you have done the following
blink.cmp
<C-k>
on https://cmp.saghen.dev)Bug Description
Blink behaves weirdly if completion items contain special characters.
I'm sure the clojure language is a pretty good stress test for blink because clojure vars can and do contain a larger range of 'special' characters than other languages.
A very common one is the
!
character to indicate mutation or side-effects and->
or>
/<
characters.For example if I have a lib exporting the following:
and try autocomplete it as follows:
Then I only see:
When I would expect to see all three exported vars.
If I comment out the
do-something
export then, surprisingly, I see the special-character exports:And as a side-note, trying to autocomplete either of the two above items containing special characters results in:
(lib/lib/do-something!)
Which seems to be #46 raising its head again.
I recorded a short vid to demonstrate:
special-chars.mov
Just to be super explicit, I'm going to explain:
do-something
when it should show all three exported functions. Accepting it does inserts the correct content into the buffer, which is good.do-something
as an exported var in thelib
module results in both the two special-character containing exports to now show as expected.lib/
identifier).>
character hides the autocompletion menu when, for clojure, I expect it to remain. This should still be considered a keyword (should this be made configurable in blink?)Relevant configuration
No response
neovim
version0.10.2
blink.cmp
versionmain
The text was updated successfully, but these errors were encountered: