vim-patch:2a2c4ff: runtime(doc): clarify how fuzzy 'completeopt' should work

related: vim/vim#14912

2a2c4fffd7

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2024-06-05 15:01:23 +08:00
parent 164338330b
commit c2e836c41c
3 changed files with 12 additions and 3 deletions

View File

@ -1532,7 +1532,10 @@ A jump table for the options with a short description can be found at |Q_op|.
fuzzy Enable |fuzzy-matching| for completion candidates. This fuzzy Enable |fuzzy-matching| for completion candidates. This
allows for more flexible and intuitive matching, where allows for more flexible and intuitive matching, where
characters can be skipped and matches can be found even characters can be skipped and matches can be found even
if the exact sequence is not typed. if the exact sequence is not typed. Only makes a
difference how completion candidates are reduced from the
list of alternatives, but not how the candidates are
collected (using different completion types).
*'completeslash'* *'csl'* *'completeslash'* *'csl'*
'completeslash' 'csl' string (default "") 'completeslash' 'csl' string (default "")

View File

@ -1076,7 +1076,10 @@ vim.bo.cfu = vim.bo.completefunc
--- fuzzy Enable `fuzzy-matching` for completion candidates. This --- fuzzy Enable `fuzzy-matching` for completion candidates. This
--- allows for more flexible and intuitive matching, where --- allows for more flexible and intuitive matching, where
--- characters can be skipped and matches can be found even --- characters can be skipped and matches can be found even
--- if the exact sequence is not typed. --- if the exact sequence is not typed. Only makes a
--- difference how completion candidates are reduced from the
--- list of alternatives, but not how the candidates are
--- collected (using different completion types).
--- ---
--- @type string --- @type string
vim.o.completeopt = "menu,preview" vim.o.completeopt = "menu,preview"

View File

@ -1458,7 +1458,10 @@ return {
fuzzy Enable |fuzzy-matching| for completion candidates. This fuzzy Enable |fuzzy-matching| for completion candidates. This
allows for more flexible and intuitive matching, where allows for more flexible and intuitive matching, where
characters can be skipped and matches can be found even characters can be skipped and matches can be found even
if the exact sequence is not typed. if the exact sequence is not typed. Only makes a
difference how completion candidates are reduced from the
list of alternatives, but not how the candidates are
collected (using different completion types).
]=], ]=],
expand_cb = 'expand_set_completeopt', expand_cb = 'expand_set_completeopt',
full_name = 'completeopt', full_name = 'completeopt',