diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-09-11 06:04:57 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 07:26:42 +0800 |
commit | bf62672d59299cc548103bdf7d8d162043acd011 (patch) | |
tree | 4f90ef0a63c71d91c1cf32ea94a523941a536cbd | |
parent | 767a52ba308655f72ac4d255b4f13fd2c635f6d1 (diff) | |
download | rneovim-bf62672d59299cc548103bdf7d8d162043acd011.tar.gz rneovim-bf62672d59299cc548103bdf7d8d162043acd011.tar.bz2 rneovim-bf62672d59299cc548103bdf7d8d162043acd011.zip |
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeopt's fuzzy documentation
Originally, `:set completeopt+=fuzzy` did not affect how the candidate
list is collected in default keyword completion. A comment was added to
documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the
fuzzy behavior to now change the candidate collection behavior as well
so the clarification in docs is now wrong. Remove them here.
closes: vim/vim#15656
https://github.com/vim/vim/commit/26e4b000025ea0e25ea7877314d9095737431bae
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
-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, 3 insertions, 12 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index ba1d353f40..d477130a29 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1536,10 +1536,7 @@ 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. 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). + if the exact sequence is not typed. longest Only insert the longest common text of the matches. If the menu is displayed you can use CTRL-L to add more diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 46366d585b..58a8da4f26 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1063,10 +1063,7 @@ vim.go.cia = vim.go.completeitemalign --- 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. 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). +--- if the exact sequence is not typed. --- --- longest Only insert the longest common text of the matches. If --- the menu is displayed you can use CTRL-L to add more diff --git a/src/nvim/options.lua b/src/nvim/options.lua index bb63ff638b..c028999d61 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1505,10 +1505,7 @@ local options = { 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. 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). + if the exact sequence is not typed. longest Only insert the longest common text of the matches. If the menu is displayed you can use CTRL-L to add more |