From e39cdafed96813567128c931a6b784b6858dcc13 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Mar 2025 07:42:54 +0800 Subject: vim-patch:9.1.1201: 'completefuzzycollect' does not handle dictionary correctly Problem: 'completefuzzycollect' does not handle dictionary correctly Solution: check for ctrl_x_mode_dictionary (glepnir) closes: vim/vim#16867 https://github.com/vim/vim/commit/587601671cd06ddc4d78f907d98578cdab96003f Cherry-pick a documentation fix from later. Co-authored-by: glepnir --- runtime/lua/vim/_meta/options.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'runtime/lua/vim/_meta') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index a3cb5042aa..20d8ac3058 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1050,17 +1050,18 @@ vim.bo.cfu = vim.bo.completefunc --- find completion candidates instead of the standard prefix-based --- matching. This option can contain the following values: --- ---- keyword keywords in the current file `i_CTRL-X_CTRL-N` ---- keywords with the ".", "w", "b", "u", "U" and ---- "k{dict}" flags in 'complete'. `i_CTRL-N` `i_CTRL-P` +--- keyword keywords in the current file `i_CTRL-X_CTRL-N` +--- keywords with flags ".", "w", `i_CTRL-N` `i_CTRL-P` +--- "b", "u", "U" and "k{dict}" in 'complete' +--- keywords in 'dictionary' `i_CTRL-X_CTRL-K` --- ---- files file names `i_CTRL-X_CTRL-F` +--- files file names `i_CTRL-X_CTRL-F` --- ---- whole_line whole lines `i_CTRL-X_CTRL-L` +--- whole_line whole lines `i_CTRL-X_CTRL-L` --- ---- When used with 'completeopt' "longest" option, fuzzy collection can ---- identify the longest common string among the best fuzzy matches and ---- automatically insert it. +--- When using the 'completeopt' "longest" option value, fuzzy collection +--- can identify the longest common string among the best fuzzy matches +--- and insert it automatically. --- --- @type string vim.o.completefuzzycollect = "" -- cgit