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