neovim

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

commit ad48cccaa86cc5eb56a8a0924193e0d361944f6e
parent 71f3a9c5900fa1882a77f2300baac462a5bf480f
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu,  1 May 2025 07:39:36 +0800

vim-patch:partial:fa8b7db: runtime(doc): tweak documentation style in options.txt

closes: vim/vim#17229

https://github.com/vim/vim/commit/fa8b7db99afad9074e4e1f89b49046836ac61d5b

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>

Diffstat:
Mruntime/doc/options.txt | 14+++++++-------
Mruntime/lua/vim/_meta/options.lua | 14+++++++-------
Msrc/nvim/options.lua | 14+++++++-------
3 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt @@ -2650,7 +2650,7 @@ A jump table for the options with a short description can be found at |Q_op|. lastline '@' 'display' contains lastline/truncate trunc '>' truncated text in the |ins-completion-menu|. - truncrl '<' same as "trunc' in 'rightleft' mode + truncrl '<' same as "trunc" in 'rightleft' mode Any one that is omitted will fall back to the default. @@ -3546,10 +3546,10 @@ A jump table for the options with a short description can be found at |Q_op|. *'isexpand'* *'ise'* 'isexpand' 'ise' string (default "") global or local to buffer |global-local| - Defines characters and patterns for completion in insert mode. Used by - the |complete_match()| function to determine the starting position for - completion. This is a comma-separated list of triggers. Each trigger - can be: + Defines characters and patterns for completion in insert mode. Used + by the |complete_match()| function to determine the starting position + for completion. This is a comma-separated list of triggers. Each + trigger can be: - A single character like "." or "/" - A sequence of characters like "->", "/*", or "/**" @@ -7197,8 +7197,8 @@ A jump table for the options with a short description can be found at |Q_op|. < First press: longest common substring Second press: list all matches >vim set wildmode=noselect:full -< Show 'wildmenu' without completing or selecting on first press - Cycle full matches on second press >vim +< First press: show 'wildmenu' without completing or selecting + Second press: cycle full matches >vim set wildmode=noselect:lastused,full < Same as above, but buffer matches are sorted by time last used More info here: |cmdline-completion|. diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua @@ -2345,7 +2345,7 @@ vim.bo.ft = vim.bo.filetype --- lastline '@' 'display' contains lastline/truncate --- trunc '>' truncated text in the --- `ins-completion-menu`. ---- truncrl '<' same as "trunc' in 'rightleft' mode +--- truncrl '<' same as "trunc" in 'rightleft' mode --- --- Any one that is omitted will fall back to the default. --- @@ -3438,10 +3438,10 @@ vim.o.inf = vim.o.infercase vim.bo.infercase = vim.o.infercase vim.bo.inf = vim.bo.infercase ---- Defines characters and patterns for completion in insert mode. Used by ---- the `complete_match()` function to determine the starting position for ---- completion. This is a comma-separated list of triggers. Each trigger ---- can be: +--- Defines characters and patterns for completion in insert mode. Used +--- by the `complete_match()` function to determine the starting position +--- for completion. This is a comma-separated list of triggers. Each +--- trigger can be: --- - A single character like "." or "/" --- - A sequence of characters like "->", "/*", or "/**" --- @@ -7879,8 +7879,8 @@ vim.go.wmnu = vim.go.wildmenu --- ```vim --- set wildmode=noselect:full --- ``` ---- Show 'wildmenu' without completing or selecting on first press ---- Cycle full matches on second press +--- First press: show 'wildmenu' without completing or selecting +--- Second press: cycle full matches --- --- ```vim --- set wildmode=noselect:lastused,full diff --git a/src/nvim/options.lua b/src/nvim/options.lua @@ -3070,7 +3070,7 @@ local options = { lastline '@' 'display' contains lastline/truncate trunc '>' truncated text in the |ins-completion-menu|. - truncrl '<' same as "trunc' in 'rightleft' mode + truncrl '<' same as "trunc" in 'rightleft' mode Any one that is omitted will fall back to the default. @@ -4640,10 +4640,10 @@ local options = { defaults = '', deny_duplicates = true, desc = [=[ - Defines characters and patterns for completion in insert mode. Used by - the |complete_match()| function to determine the starting position for - completion. This is a comma-separated list of triggers. Each trigger - can be: + Defines characters and patterns for completion in insert mode. Used + by the |complete_match()| function to determine the starting position + for completion. This is a comma-separated list of triggers. Each + trigger can be: - A single character like "." or "/" - A sequence of characters like "->", "/*", or "/**" @@ -10245,8 +10245,8 @@ local options = { < First press: longest common substring Second press: list all matches >vim set wildmode=noselect:full - < Show 'wildmenu' without completing or selecting on first press - Cycle full matches on second press >vim + < First press: show 'wildmenu' without completing or selecting + Second press: cycle full matches >vim set wildmode=noselect:lastused,full < Same as above, but buffer matches are sorted by time last used More info here: |cmdline-completion|.