diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-05 15:01:23 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-06-05 15:08:31 +0800 |
commit | c2e836c41cabef3c5e269b5f6401f272112c75e1 (patch) | |
tree | dff288367cf1e03c9d6fc6a29de9c10a2f325a5c | |
parent | 164338330b74e6e7c7cbb61e49c810dd82599236 (diff) | |
download | rneovim-c2e836c41cabef3c5e269b5f6401f272112c75e1.tar.gz rneovim-c2e836c41cabef3c5e269b5f6401f272112c75e1.tar.bz2 rneovim-c2e836c41cabef3c5e269b5f6401f272112c75e1.zip |
vim-patch:2a2c4ff: runtime(doc): clarify how fuzzy 'completeopt' should work
related: vim/vim#14912
https://github.com/vim/vim/commit/2a2c4fffd7e04f74b316209404767f128684a9e1
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/doc/options.txt | 5 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 5 | ||||
-rw-r--r-- | src/nvim/options.lua | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index e9fa53ca97..c33b8ac03c 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -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 allows for more flexible and intuitive matching, where 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' string (default "") diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 92c54c397f..0b4294ae4b 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1076,7 +1076,10 @@ vim.bo.cfu = vim.bo.completefunc --- fuzzy Enable `fuzzy-matching` for completion candidates. This --- allows for more flexible and intuitive matching, where --- 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 vim.o.completeopt = "menu,preview" diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 64a3307f46..aa43c4cf3d 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1458,7 +1458,10 @@ return { fuzzy Enable |fuzzy-matching| for completion candidates. This allows for more flexible and intuitive matching, where 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', full_name = 'completeopt', |