fix(blink.cmp): avoid duplicate characters#128
fix(blink.cmp): avoid duplicate characters#128One-In-Dark wants to merge 1 commit intoluozhiya:masterfrom
Conversation
|
It's generated by Copilot so I can see that there's way too much noise :-( |
Problem: When fittencode is used as a source of blink.cmp, the characters following the cursor will be duplicated in the completion item. For example if the completion is triggered in "(|)" where the vertical bar '|' indicates the cursor, the completion item will be ")foo)", with an extra closing parenthesis in the beginning. Solution: Remove the logic that adds the following characters to the completion text, which should be only used for virtual text style. Closes luozhiya#127
|
作者似乎好久没上线了哦 |
看上去是的www, 没关系, 我也是拿它体验下 Copilot 写代码 (OpenCode 具体地说) 效果如何 :v |
|
在线呢,最近是事情比较多,回复不及时哈。之后我还打算有时间的话重构写个新版 😁 blink 这个插件我不太熟悉, @One-In-Dark @cxwx 这个pr你们测过效果怎么样 |
问题是没了,但本来会跳出来的补全也没了 |
|
先 draft 一会儿, 我一定会回来的😤 |
|
FittenCode 重构了一个新版本,麻烦试下是否解决问题了 |
|
/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:39: module 'fittencode.sources.blink' not found: 但是这个 module 没了, |
现在配置 blink 只要改两个地方,一个是 blink.cmp source中添加 FittenCode 一个是 FittenCode 中 不需要手动指定module了 |
|
如果用module的方式的话,可以用这个路径 |
|
多括号的问题应该是解决了,🎉🎉🎉 |
Problem:
When fittencode is used as a source of blink.cmp, the characters following the cursor will be duplicated in the completion item.
For example if the completion is triggered in "(|)" where the vertical bar '|' indicates the cursor, the completion item will be ")foo)", with an extra closing parenthesis in the beginning.
Solution:
Remove the logic that adds the following characters to the completion text, which should be only used for virtual text style.
Closes #127