neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit da219960cbe429e5888d742719585917eb166321
parent 567ab3c34fea43dfb0836a7b7f4bf9c202bf3eb8
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 28 Feb 2025 08:28:24 +0800

vim-patch:85a50fe: runtime(doc): fix confusing docs for 'completeitemalign' (#32671)

closes: vim/vim#16743

https://github.com/vim/vim/commit/85a50fe825ba11a35ce654f7313b4350e3ba4b52
Diffstat:
Mruntime/doc/options.txt | 8++++----
Mruntime/lua/vim/_meta/options.lua | 8++++----
Msrc/nvim/options.lua | 8++++----
3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt @@ -1520,10 +1520,10 @@ A jump table for the options with a short description can be found at |Q_op|. *'completeitemalign'* *'cia'* 'completeitemalign' 'cia' string (default "abbr,kind,menu") global - A comma-separated list of |complete-items| that controls the alignment - and display order of items in the popup menu during Insert mode - completion. The supported values are abbr, kind, and menu. These - options allow to customize how the completion items are shown in the + A comma-separated list of strings that controls the alignment and + display order of items in the popup menu during Insert mode + completion. The supported values are "abbr", "kind", and "menu". + These values allow customizing how |complete-items| are shown in the popup menu. Note: must always contain those three values in any order. diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua @@ -1044,10 +1044,10 @@ vim.o.cfu = vim.o.completefunc vim.bo.completefunc = vim.o.completefunc vim.bo.cfu = vim.bo.completefunc ---- A comma-separated list of `complete-items` that controls the alignment ---- and display order of items in the popup menu during Insert mode ---- completion. The supported values are abbr, kind, and menu. These ---- options allow to customize how the completion items are shown in the +--- A comma-separated list of strings that controls the alignment and +--- display order of items in the popup menu during Insert mode +--- completion. The supported values are "abbr", "kind", and "menu". +--- These values allow customizing how `complete-items` are shown in the --- popup menu. Note: must always contain those three values in any --- order. --- diff --git a/src/nvim/options.lua b/src/nvim/options.lua @@ -1466,10 +1466,10 @@ local options = { flags = true, deny_duplicates = true, desc = [=[ - A comma-separated list of |complete-items| that controls the alignment - and display order of items in the popup menu during Insert mode - completion. The supported values are abbr, kind, and menu. These - options allow to customize how the completion items are shown in the + A comma-separated list of strings that controls the alignment and + display order of items in the popup menu during Insert mode + completion. The supported values are "abbr", "kind", and "menu". + These values allow customizing how |complete-items| are shown in the popup menu. Note: must always contain those three values in any order. ]=],