Comments (10)
目前无法重现,我这边删除会弹出补全菜单,但是不会自动又把字符加回来。
from lsp-bridge.
目前看是 doom-emacs + evil 会遇到这个问题,原生Emacs -Q没有这个问题。
from lsp-bridge.
我用evil,python的代码也是有这个问题,删除一个函数最后的字母后会自动补齐,如图中代码把get_emacs_version()
的最后一个n
删掉后,自己再加上一个n,get_emacs_versionn() 就多一个。按u
键undo还是会自动补一个n上去,就有2个n了。
from lsp-bridge.
我用evil,python的代码也是有这个问题,删除一个函数最后的字母后会自动补齐,如图中代码把
get_emacs_version()
的最后一个n
删掉后,自己再加上一个n,get_emacs_versionn() 就多一个。按u
键undo还是会自动补一个n上去,就有2个n了。
目前看不是 lsp-bridge 的问题,更像 evil 和 corfu 配合会出现的问题。
from lsp-bridge.
好的。如果删掉的话也可以再按tab补齐的,但是自己手工输入的话就不行了。最近代码写得少,这个issue影响不大。。。
from lsp-bridge.
(setq corfu-on-exact-match 'quit)
可以试试设置下这个
当输入匹配出的侯选项只有一个的时候,默认是会自动插入,这会触发 exit-function 执行,然后会触发文件更新 ,文件变化又会触发 lsp-bridge 的监听,它会触发 didChange 和 completion 请求,请求回来又会触发 corfu 出弹窗,因为只有一个,又会自动插入,所以这里就会出现循环。
我这里加上上面那句,改成只有一个惟一匹配的时候退出就好了。
from lsp-bridge.
可以试一下 #141 这个补丁的方法,看看是不是 evil 在 command 模式下自动插入了?
from lsp-bridge.
收到。我试试
from lsp-bridge.
收到。我试试
注意,你要用
(add-to-list 'lsp-bridge-enable-popup-predicates
'((lambda ()
(and
(< corfu--index 0) ; not select a candidate
(or (not (featurep 'evil)) (evil-insert-state-p)))))
from lsp-bridge.
(setq corfu-on-exact-match 'quit)
可以试试设置下这个
当输入匹配出的侯选项只有一个的时候,默认是会自动插入,这会触发 exit-function 执行,然后会触发文件更新 ,文件变化又会触发 lsp-bridge 的监听,它会触发 didChange 和 completion 请求,请求回来又会触发 corfu 出弹窗,因为只有一个,又会自动插入,所以这里就会出现循环。
我这里加上上面那句,改成只有一个惟一匹配的时候退出就好了。
你说的问题已经被 6c6aa6f 修复了
from lsp-bridge.
Related Issues (20)
- Can we reduce the frequency of `redisplay` execution? HOT 4
- 开启lsp-bridge-semantic-tokens-mode 在clangd server C++代码中似乎并没有生效 HOT 8
- Idea: Support lsp progress? HOT 6
- lsp-bridge-copilot-login 无法登录 HOT 24
- elisp 开启lsp-bridge,跳转返回时,提示:[LSP-Bridge] No lsp-bridge mark set HOT 3
- code-action无法使用 HOT 1
- Lsp-bridge does not work on doom emacs HOT 3
- lsp-bridge-code-action does not get imports HOT 7
- Cannot start "deno lsp" HOT 7
- 使用lsp-bridge-semantic-tokens-global-scope-face后,C++中的宏和函数的颜色无法区分开 HOT 9
- Rust中函数名不显示 HOT 1
- C++自己写的头文件函数名不显示,标准库可以 HOT 6
- Incorrect response to `window/workDoneProgress/create` HOT 2
- paramiko.ssh_exception.PasswordRequiredException: Private key file is encrypted HOT 3
- 补全自动修改窗口位置 HOT 3
- `lsp-bridge` clogging `org-babel-tangle` when enabled HOT 1
- Dynamically set up `lsp-bridge-get-single-lang-server-by-project` HOT 3
- rust remote server 失败,可能是在远程主机没有启动 tabnine HOT 7
- react jsx 中不支持 tailwindcss HOT 3
- semantic-tokens 渲染modifiers时能否支持combine和override混用 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-bridge.