From 7380f8ec714d437b4fe2d36c80910aa5c5b53cb6 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 19 Apr 2025 08:42:48 +0800 Subject: vim-patch:cb3b752: runtime(doc): clarify "nearest" value for 'completeopt' (#33534) closes: vim/vim#17146 https://github.com/vim/vim/commit/cb3b752f9523060d3feaee33049d2092c288fca2 Co-authored-by: Girish Palya --- runtime/lua/vim/_meta/options.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 956a22bd4b..78bce262cd 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1123,8 +1123,10 @@ vim.go.cia = vim.go.completeitemalign --- Useful when there is additional information about the --- match, e.g., what file it comes from. --- ---- nearest Matches are presented in order of proximity to the cursor ---- position. This applies only to matches from the current +--- nearest Matches are listed based on their proximity to the cursor +--- position, unlike the default behavior, which only +--- considers proximity for matches appearing below the +--- cursor. This applies only to matches from the current --- buffer. No effect if "fuzzy" is present. --- --- noinsert Do not insert any text for a match until the user selects -- cgit