neovim

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

commit 13aec582b4da61c4bcf086637bb325dc47021186
parent 857ff5cae936c7caa37949a6ffbc84915955114c
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat, 31 May 2025 18:58:11 +0800

vim-patch: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 | 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 @@ -1506,7 +1506,7 @@ A jump table for the options with a short description can be found at |Q_op|. ] tag completion t same as "]" f scan the buffer names (as opposed to buffer contents) - f{func} call the function {func}. Multiple "f" flags may be specified. + f{func} call the function {func}. Multiple "f" flags may be specified. Refer to |complete-functions| for details on how the function is invoked and what it should return. The value can be the name of a function or a |Funcref|. For |Funcref| values, @@ -1541,9 +1541,9 @@ A jump table for the options with a short description can be found at |Q_op|. An optional match limit can be specified for a completion source by appending a caret ("^") followed by a {count} to the source flag. For example: ".^9,w,u,t^5" limits matches from the current buffer - to 9 and from tags to 5. Other sources remain unlimited. - The match limit takes effect only during forward completion (CTRL-N) - and is ignored during backward completion (CTRL-P). + to 9 and from tags to 5. Other sources remain unlimited. + Note: The match limit takes effect only during forward completion + (CTRL-N) and is ignored during backward completion (CTRL-P). *'completefunc'* *'cfu'* 'completefunc' 'cfu' string (default "") diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua @@ -1027,7 +1027,7 @@ vim.bo.cms = vim.bo.commentstring --- ] tag completion --- t same as "]" --- f scan the buffer names (as opposed to buffer contents) ---- f{func} call the function {func}. Multiple "f" flags may be specified. +--- f{func} call the function {func}. Multiple "f" flags may be specified. --- Refer to `complete-functions` for details on how the function --- is invoked and what it should return. The value can be the --- name of a function or a `Funcref`. For `Funcref` values, @@ -1062,9 +1062,9 @@ vim.bo.cms = vim.bo.commentstring --- An optional match limit can be specified for a completion source by --- appending a caret ("^") followed by a {count} to the source flag. --- For example: ".^9,w,u,t^5" limits matches from the current buffer ---- to 9 and from tags to 5. Other sources remain unlimited. ---- The match limit takes effect only during forward completion (CTRL-N) ---- and is ignored during backward completion (CTRL-P). +--- to 9 and from tags to 5. Other sources remain unlimited. +--- Note: The match limit takes effect only during forward completion +--- (CTRL-N) and is ignored during backward completion (CTRL-P). --- --- @type string vim.o.complete = ".,w,b,u,t" diff --git a/src/nvim/options.lua b/src/nvim/options.lua @@ -1438,7 +1438,7 @@ local options = { ] tag completion t same as "]" f scan the buffer names (as opposed to buffer contents) - f{func} call the function {func}. Multiple "f" flags may be specified. + f{func} call the function {func}. Multiple "f" flags may be specified. Refer to |complete-functions| for details on how the function is invoked and what it should return. The value can be the name of a function or a |Funcref|. For |Funcref| values, @@ -1473,9 +1473,9 @@ local options = { An optional match limit can be specified for a completion source by appending a caret ("^") followed by a {count} to the source flag. For example: ".^9,w,u,t^5" limits matches from the current buffer - to 9 and from tags to 5. Other sources remain unlimited. - The match limit takes effect only during forward completion (CTRL-N) - and is ignored during backward completion (CTRL-P). + to 9 and from tags to 5. Other sources remain unlimited. + Note: The match limit takes effect only during forward completion + (CTRL-N) and is ignored during backward completion (CTRL-P). ]=], full_name = 'complete', list = 'onecomma',