commit f4e4799f2707a41a882fa85c2f1a276d69f08d56
parent 2ea7333f64cf3b2acd0ad6ee28cfc3776b8b4510
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 12 Oct 2025 12:16:14 +0800
docs: small fixes (#36146)
Close #35989
Close #36031
Close #36107
Co-authored-by: Kieran Moy <kfatyuip@gmail.com>
Co-authored-by: William Sprent <william@sprent.dk>
Co-authored-by: David Briscoe <43559+idbrii@users.noreply.github.com>
Diffstat:
8 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -9,7 +9,7 @@ body:
*Before reporting:*
- Confirm the problem is reproducible on [**master**](https://github.com/neovim/neovim/releases/nightly) or [**latest stable**](https://github.com/neovim/neovim/releases/stable) release
- Run `make distclean` when encountering build issues
- - Search [existing issues](https://github.com/neovim/neovim/issues?q=is%3Aissue+is%3Aopen+label%3Abug,bug-crash) (including [closed](https://github.com/neovim/neovim/issues?q=is%3Aissue+is%3Aclosed+label%3Abug%2Cbug-crash))
+ - Search [existing issues](https://github.com/neovim/neovim/issues?q=is%3Aissue%20is%3Aopen%20type%3ABug) (including [closed](https://github.com/neovim/neovim/issues?q=is%3Aissue%20is%3Aclosed%20type%3ABug))
- Read the [FAQ](https://neovim.io/doc/user/faq.html) and ["Reporting Problems" in CONTRIBUTING.md](https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#reporting-problems).
Usage or "How to" questions belong on [stackoverflow](https://vi.stackexchange.com/) and will be closed.
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt
@@ -728,9 +728,12 @@ when the right mouse button is pressed, if 'mousemodel' is set to popup or
popup_setpos.
The default "PopUp" menu is: >vim
- anoremenu PopUp.Go\ to\ definition <Cmd>lua vim.lsp.buf.definition()<CR>
amenu PopUp.Open\ in\ web\ browser gx
anoremenu PopUp.Inspect <Cmd>Inspect<CR>
+ anoremenu PopUp.Go\ to\ definition <Cmd>lua vim.lsp.buf.definition()<CR>
+ anoremenu PopUp.Show\ Diagnostics <Cmd>lua vim.diagnostic.open_float()<CR>
+ anoremenu PopUp.Show\ All\ Diagnostics <Cmd>lua vim.diagnostic.setqflist()<CR>
+ anoremenu PopUp.Configure\ Diagnostics <Cmd>help vim.diagnostic.config()<CR>
anoremenu PopUp.-1- <Nop>
vnoremenu PopUp.Cut "+x
vnoremenu PopUp.Copy "+y
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
@@ -4510,11 +4510,12 @@ SystemObj:kill({signal}) *SystemObj:kill()*
Example: >lua
local obj = vim.system({'sleep', '10'})
- obj:kill('TERM') -- sends SIGTERM to the process
+ obj:kill('sigterm') -- sends SIGTERM to the process
<
Parameters: ~
- • {signal} (`integer|string`) Signal to send to the process.
+ • {signal} (`integer|string`) Signal to send to the process. See
+ |luv-constants|.
SystemObj:wait({timeout}) *SystemObj:wait()*
Waits for the process to complete or until the specified timeout elapses.
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
@@ -219,7 +219,7 @@ HIGHLIGHTS
• |hl-DiffTextAdd| highlights added text within a changed line.
• |hl-OkMsg| |hl-StderrMsg| |hl-StdoutMsg|
• |hl-SnippetTabstopActive| highlights the currently active tabstop.
-• |hl-PmenuBorder |hl-PmenuShadow| |hl-PmenuShadowThrough| see 'pumborder'.
+• |hl-PmenuBorder| |hl-PmenuShadow| |hl-PmenuShadowThrough| see 'pumborder'.
LSP
@@ -302,7 +302,7 @@ OPTIONS
• 'winborder' "bold" style, custom border style.
• |g:clipboard| accepts a string name to force any builtin clipboard tool.
• 'busy' sets a buffer "busy" status. Indicated in the default statusline.
-• 'pumborder' add a border to the popup menu.
+• 'pumborder' adds a border to the popup menu.
PERFORMANCE
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
@@ -5355,10 +5355,10 @@ NormalFloat Normal text in floating windows.
*hl-FloatBorder*
FloatBorder Border of floating windows.
*hl-FloatShadow*
-FloatShadow Blended areas when border is shadow.
+FloatShadow Blended areas when border is "shadow".
*hl-FLoatShadowThrough*
-FloatShadownThrough
- shadow corners when border is shadow.
+FloatShadowThrough
+ Shadow corners when border is "shadow".
*hl-FloatTitle*
FloatTitle Title of floating windows.
*hl-FloatFooter*
@@ -5390,10 +5390,10 @@ PmenuMatchSel Popup menu: Matched text in selected item. Combined with
*hl-PmenuBorder*
PmenuBorder Popup menu: border of popup menu.
*hl-PmenuShadow*
-PmenuShadow Popup menu: blended areas when 'pumborder' is shadow.
+PmenuShadow Popup menu: blended areas when 'pumborder' is "shadow".
*hl-PmenuShadowThrough*
-PmenuShadownThrough
- Popup menu: shadow corners when 'pumborder' is shadow.
+PmenuShadowThrough
+ Popup menu: shadow corners when 'pumborder' is "shadow".
*hl-ComplMatchIns*
ComplMatchIns Matched text of the currently inserted completion.
*hl-PreInsert*
diff --git a/runtime/lua/vim/_system.lua b/runtime/lua/vim/_system.lua
@@ -98,10 +98,10 @@ end
--- Example:
--- ```lua
--- local obj = vim.system({'sleep', '10'})
---- obj:kill('TERM') -- sends SIGTERM to the process
+--- obj:kill('sigterm') -- sends SIGTERM to the process
--- ```
---
---- @param signal integer|string Signal to send to the process.
+--- @param signal integer|string Signal to send to the process. See |luv-constants|.
function SystemObj:kill(signal)
self._state.handle:kill(signal)
end
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
@@ -2260,7 +2260,7 @@ bool ins_compl_has_autocomplete(void)
return curbuf->b_p_ac >= 0 ? curbuf->b_p_ac : p_ac;
}
-/// Cacluate fuzzy score and sort completion matches unless sorting is disabled.
+/// Calculate fuzzy score and sort completion matches unless sorting is disabled.
static void ins_compl_fuzzy_sort(void)
{
unsigned cur_cot_flags = get_cot_flags();
diff --git a/test/old/testdir/gen_opt_test.vim b/test/old/testdir/gen_opt_test.vim
@@ -96,6 +96,7 @@ let test_values = {
\ 'highlight': [[&highlight], []],
\ 'iminsert': [[0, 1], [-1, 2, 3, 999]],
\ 'imsearch': [[-1, 0, 1], [-2, 2, 3, 999]],
+ \ 'pumborder': [['rounded', 'none', 'single', 'solid'], ['xxx', 'none,solid']],
\ 'signcolumn': [['auto', 'no', 'yes', 'number', 'yes:1', 'auto:1-9'],
\ ['', 'xxx', 'no,yes', 'auto:0-9', 'auto:9-1', 'auto:1-@']],
\ 'writedelay': [[0, 100], [-1, '']],
@@ -300,7 +301,6 @@ let test_values = {
\ 'alpha,hex,bin'],
\ ['xxx']],
\ 'patchmode': [['', 'xxx', '.x'], [&backupext, '*']],
- \ 'pumborder': [['rounded', 'none', 'single', 'solid'], ['xxx', 'none,solid']],
"\ 'previewpopup': [['', 'height:13', 'width:20', 'highlight:That',
"\ " 'align:item', 'align:menu', 'border:on', 'border:off',
"\ " 'width:10,height:234,highlight:Mine'],
@@ -311,6 +311,10 @@ let test_values = {
"\ " ['xxx', 'xxx,c:yes', 'xxx:', 'xxx:,c:yes']],
"\ 'printoptions': [['', 'header:0', 'left:10pc,top:5pc'],
"\ " ['xxx', 'header:-1']],
+ "\ 'pumborder': [['', 'single', 'double', 'round', 'ascii', 'shadow',
+ "\ " 'double,margin,shadow', 'custom:─;│;─;│;┌;┐;┘;└,shadow',
+ "\ " 'ascii,margin'],
+ "\ " ['xxx', 'margin', 'margin,shadow', 'custom:', 'custom:+;']],
"\ 'renderoptions': [[''], ['xxx']],
\ 'rightleftcmd': [['search'], ['xxx']],
\ 'rulerformat': [['', 'xxx'], ['%-', '%(', '%15(%%']],