From 3f422cb5eb0a24a87ac345b7e36ed719b426f28b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 2 Oct 2025 11:11:53 +0800 Subject: [PATCH] vim-patch:6e28211: runtime(doc): Tweak documentation style closes: vim/vim#18462 https://github.com/vim/vim/commit/6e282117c7409af15f33120e67a00c47eefbbba5 Co-authored-by: Hirohito Higashi --- runtime/doc/options.txt | 15 +++++++-------- runtime/lua/vim/_meta/options.lua | 15 +++++++-------- src/nvim/options.lua | 15 +++++++-------- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 2a6751b250..b80b117b3f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1639,12 +1639,11 @@ A jump table for the options with a short description can be found at |Q_op|. see 'completefuzzycollect'. longest - When 'autocomplete' is not active, only the longest - common prefix of the matches is inserted. If the popup - menu is displayed, you can use CTRL-L to add more - characters. Whether case is ignored depends on the type - of completion. For buffer text the 'ignorecase' option - applies. + When 'autocomplete' is not active, only the longest common + prefix of the matches is inserted. If the popup menu is + displayed, you can use CTRL-L to add more characters. + Whether case is ignored depends on the type of completion. + For buffer text the 'ignorecase' option applies. When 'autocomplete' is active and no completion item is selected, the longest common prefix of the matches is @@ -1686,8 +1685,8 @@ A jump table for the options with a short description can be found at |Q_op|. with "menu" or "menuone". Overrides "preview". preinsert - Inserts the text of the first completion candidate - beyond the current leader, highlighted with |hl-PreInsert|. + Inserts the text of the first completion candidate beyond + the current leader, highlighted with |hl-PreInsert|. The cursor does not move. Requires "fuzzy" to be unset, and either "menuone" in 'completeopt' or 'autocomplete' enabled. When diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 4adad760e9..20f7f1b7cb 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -1184,12 +1184,11 @@ vim.go.cia = vim.go.completeitemalign --- see 'completefuzzycollect'. --- --- longest ---- When 'autocomplete' is not active, only the longest ---- common prefix of the matches is inserted. If the popup ---- menu is displayed, you can use CTRL-L to add more ---- characters. Whether case is ignored depends on the type ---- of completion. For buffer text the 'ignorecase' option ---- applies. +--- When 'autocomplete' is not active, only the longest common +--- prefix of the matches is inserted. If the popup menu is +--- displayed, you can use CTRL-L to add more characters. +--- Whether case is ignored depends on the type of completion. +--- For buffer text the 'ignorecase' option applies. --- --- When 'autocomplete' is active and no completion item is --- selected, the longest common prefix of the matches is @@ -1231,8 +1230,8 @@ vim.go.cia = vim.go.completeitemalign --- with "menu" or "menuone". Overrides "preview". --- --- preinsert ---- Inserts the text of the first completion candidate ---- beyond the current leader, highlighted with `hl-PreInsert`. +--- Inserts the text of the first completion candidate beyond +--- the current leader, highlighted with `hl-PreInsert`. --- The cursor does not move. --- Requires "fuzzy" to be unset, and either "menuone" in --- 'completeopt' or 'autocomplete' enabled. When diff --git a/src/nvim/options.lua b/src/nvim/options.lua index e4a53cb982..a396ef912a 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1664,12 +1664,11 @@ local options = { see 'completefuzzycollect'. longest - When 'autocomplete' is not active, only the longest - common prefix of the matches is inserted. If the popup - menu is displayed, you can use CTRL-L to add more - characters. Whether case is ignored depends on the type - of completion. For buffer text the 'ignorecase' option - applies. + When 'autocomplete' is not active, only the longest common + prefix of the matches is inserted. If the popup menu is + displayed, you can use CTRL-L to add more characters. + Whether case is ignored depends on the type of completion. + For buffer text the 'ignorecase' option applies. When 'autocomplete' is active and no completion item is selected, the longest common prefix of the matches is @@ -1711,8 +1710,8 @@ local options = { with "menu" or "menuone". Overrides "preview". preinsert - Inserts the text of the first completion candidate - beyond the current leader, highlighted with |hl-PreInsert|. + Inserts the text of the first completion candidate beyond + the current leader, highlighted with |hl-PreInsert|. The cursor does not move. Requires "fuzzy" to be unset, and either "menuone" in 'completeopt' or 'autocomplete' enabled. When