diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-05 15:26:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 15:26:24 +0800 |
commit | e41597c510b4708c3192aa7573137e0fe9468a3a (patch) | |
tree | a4094336107761d050e491d61d6686f2c5aa3efb /runtime | |
parent | f69937fdbd162630c35e119e67bbbf052558c0e0 (diff) | |
parent | 818cb27e4843e410df9cc6db11efb33e26bc1b41 (diff) | |
download | rneovim-e41597c510b4708c3192aa7573137e0fe9468a3a.tar.gz rneovim-e41597c510b4708c3192aa7573137e0fe9468a3a.tar.bz2 rneovim-e41597c510b4708c3192aa7573137e0fe9468a3a.zip |
Merge pull request #29200 from zeertzjq/vim-9.1.0463
vim-patch:9.1.{0463,0466}
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 14 | ||||
-rw-r--r-- | runtime/doc/pattern.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 14 |
3 files changed, 24 insertions, 6 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 20e825329a..c33b8ac03c 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1517,6 +1517,10 @@ A jump table for the options with a short description can be found at |Q_op|. completion in the preview window. Only works in combination with "menu" or "menuone". + popup Show extra information about the currently selected + completion in a popup window. Only works in combination + with "menu" or "menuone". Overrides "preview". + noinsert Do not insert any text for a match until the user selects a match from the menu. Only works in combination with "menu" or "menuone". No effect if "longest" is present. @@ -1525,9 +1529,13 @@ A jump table for the options with a short description can be found at |Q_op|. select one from the menu. Only works in combination with "menu" or "menuone". - popup Show extra information about the currently selected - completion in a popup window. Only works in combination - with "menu" or "menuone". Overrides "preview". + 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). *'completeslash'* *'csl'* 'completeslash' 'csl' string (default "") diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index 1ef182127c..67ef769203 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1494,5 +1494,7 @@ the matching positions and the fuzzy match scores. The "f" flag of `:vimgrep` enables fuzzy matching. +To enable fuzzy matching for |ins-completion|, add the "fuzzy" value to the +'completeopt' option. vim:tw=78:ts=8:noet:ft=help:norl: diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 93ef75aeb3..0b4294ae4b 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1061,6 +1061,10 @@ vim.bo.cfu = vim.bo.completefunc --- completion in the preview window. Only works in --- combination with "menu" or "menuone". --- +--- popup Show extra information about the currently selected +--- completion in a popup window. Only works in combination +--- with "menu" or "menuone". Overrides "preview". +--- --- noinsert Do not insert any text for a match until the user selects --- a match from the menu. Only works in combination with --- "menu" or "menuone". No effect if "longest" is present. @@ -1069,9 +1073,13 @@ vim.bo.cfu = vim.bo.completefunc --- select one from the menu. Only works in combination with --- "menu" or "menuone". --- ---- popup Show extra information about the currently selected ---- completion in a popup window. Only works in combination ---- with "menu" or "menuone". Overrides "preview". +--- 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). --- --- @type string vim.o.completeopt = "menu,preview" |