Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more constraints for completion popup #141

Merged
merged 1 commit into from
May 25, 2022

Conversation

theFool32
Copy link
Contributor

为回调时候自动弹出补全窗口增加更多限制,包括需要保证和请求补全时候同一状态以及用户自定义函数。比如可以在自己配置里用如下定制满足 corfu 没有选中候选以及 evil 处于 insert 状态才会再弹出补全框

(customize-set-variable 'lsp-bridge-enable-popup-predicates
                        '((lambda ()
                            (and
                            (< corfu--index 0) ; not select a candidate
                            (or (not (featurep 'evil)) (evil-insert-state-p)))))) ; in insert state for evil users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants