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

如何配置不显示index? #28

Closed
cxwx opened this issue May 9, 2024 · 4 comments
Closed

如何配置不显示index? #28

cxwx opened this issue May 9, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@cxwx
Copy link

cxwx commented May 9, 2024

截屏2024-05-09 23 56 16

使用多个lsp,如何才能将中文前面的index去掉?同时使用多个lsp的场景

@wlh320
Copy link
Owner

wlh320 commented May 10, 2024

现在还没法配置,你可以把这里改了再手动编译:

_ => format!("{}. {}", c.order, &text),

@rainzm
Copy link
Contributor

rainzm commented May 10, 2024

可以自定义cmp的排序

@cxwx
Copy link
Author

cxwx commented May 10, 2024

可以自定义cmp的排序

主要我也不想把 中文放最前面,
cmp 目前还没有追加 index 显示功能,

姑且当一个feature request 把

@wlh320 wlh320 added the enhancement New feature or request label May 10, 2024
wlh320 added a commit that referenced this issue Sep 12, 2024
add config `show_order_in_label`, default true
@wlh320
Copy link
Owner

wlh320 commented Sep 12, 2024

LSP server 返回的补全项都是有序列表,所以不加 index 才是常态,因此刚才加上了不显示 index 的功能。但是为了强调通过数字选词的能力,还是打算默认显示,当有自定义 label 的需求时再通过配置去掉。

@wlh320 wlh320 closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants