diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-05 06:51:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-04 22:51:36 +0000 |
commit | b0341136c1c92790d599ae361d0d91952a52f0a2 (patch) | |
tree | b19c6acd9be3df4457405ead1ac58349c524df40 /runtime/lua/vim/lsp/buf.lua | |
parent | 97dc02687af76981fa202cb575445d670b66f1f1 (diff) | |
download | rneovim-b0341136c1c92790d599ae361d0d91952a52f0a2.tar.gz rneovim-b0341136c1c92790d599ae361d0d91952a52f0a2.tar.bz2 rneovim-b0341136c1c92790d599ae361d0d91952a52f0a2.zip |
vim-patch:9.1.1170: wildmenu highlighting in popup can be improved (#32728)
Problem: wildmenu highlighting in popup can be improved
Solution: Check if the completion items contain submatches of the
entered text (Girish Palya).
This update enables highlighting in the popup menu even when the matched
fragment or pattern appears within an item (string) rather than only at the
beginning. This is especially useful for custom completion, where menu items
may not always start with the typed pattern.
For specific use cases, refer to the two examples in
https://github.com/vim/vim/pull/16759
A sliding window approach is used with direct string comparison. Performance
is not a concern, as highlighting is applied only to displayed lines, even if
the menu list is arbitrarily long.
closes: vim/vim#16785
https://github.com/vim/vim/commit/4ec46f32102e5569b247840e05a99221747a9381
Co-authored-by: Girish Palya <girishji@gmail.com>
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
0 files changed, 0 insertions, 0 deletions