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>
This commit is contained in:
zeertzjq
2025-10-12 12:16:14 +08:00
committed by GitHub
parent 2ea7333f64
commit f4e4799f27
8 changed files with 24 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ body:
*Before reporting:* *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 - 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 - 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). - 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. Usage or "How to" questions belong on [stackoverflow](https://vi.stackexchange.com/) and will be closed.

View File

@@ -728,9 +728,12 @@ when the right mouse button is pressed, if 'mousemodel' is set to popup or
popup_setpos. popup_setpos.
The default "PopUp" menu is: >vim 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 amenu PopUp.Open\ in\ web\ browser gx
anoremenu PopUp.Inspect <Cmd>Inspect<CR> 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> anoremenu PopUp.-1- <Nop>
vnoremenu PopUp.Cut "+x vnoremenu PopUp.Cut "+x
vnoremenu PopUp.Copy "+y vnoremenu PopUp.Copy "+y

View File

@@ -4510,11 +4510,12 @@ SystemObj:kill({signal}) *SystemObj:kill()*
Example: >lua Example: >lua
local obj = vim.system({'sleep', '10'}) local obj = vim.system({'sleep', '10'})
obj:kill('TERM') -- sends SIGTERM to the process obj:kill('sigterm') -- sends SIGTERM to the process
< <
Parameters: ~ 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()* SystemObj:wait({timeout}) *SystemObj:wait()*
Waits for the process to complete or until the specified timeout elapses. Waits for the process to complete or until the specified timeout elapses.

View File

@@ -219,7 +219,7 @@ HIGHLIGHTS
• |hl-DiffTextAdd| highlights added text within a changed line. • |hl-DiffTextAdd| highlights added text within a changed line.
• |hl-OkMsg| |hl-StderrMsg| |hl-StdoutMsg| • |hl-OkMsg| |hl-StderrMsg| |hl-StdoutMsg|
• |hl-SnippetTabstopActive| highlights the currently active tabstop. • |hl-SnippetTabstopActive| highlights the currently active tabstop.
• |hl-PmenuBorder |hl-PmenuShadow| |hl-PmenuShadowThrough| see 'pumborder'. • |hl-PmenuBorder| |hl-PmenuShadow| |hl-PmenuShadowThrough| see 'pumborder'.
LSP LSP
@@ -302,7 +302,7 @@ OPTIONS
• 'winborder' "bold" style, custom border style. • 'winborder' "bold" style, custom border style.
• |g:clipboard| accepts a string name to force any builtin clipboard tool. • |g:clipboard| accepts a string name to force any builtin clipboard tool.
• 'busy' sets a buffer "busy" status. Indicated in the default statusline. • '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 PERFORMANCE

View File

@@ -5355,10 +5355,10 @@ NormalFloat Normal text in floating windows.
*hl-FloatBorder* *hl-FloatBorder*
FloatBorder Border of floating windows. FloatBorder Border of floating windows.
*hl-FloatShadow* *hl-FloatShadow*
FloatShadow Blended areas when border is shadow. FloatShadow Blended areas when border is "shadow".
*hl-FLoatShadowThrough* *hl-FLoatShadowThrough*
FloatShadownThrough FloatShadowThrough
shadow corners when border is shadow. Shadow corners when border is "shadow".
*hl-FloatTitle* *hl-FloatTitle*
FloatTitle Title of floating windows. FloatTitle Title of floating windows.
*hl-FloatFooter* *hl-FloatFooter*
@@ -5390,10 +5390,10 @@ PmenuMatchSel Popup menu: Matched text in selected item. Combined with
*hl-PmenuBorder* *hl-PmenuBorder*
PmenuBorder Popup menu: border of popup menu. PmenuBorder Popup menu: border of popup menu.
*hl-PmenuShadow* *hl-PmenuShadow*
PmenuShadow Popup menu: blended areas when 'pumborder' is shadow. PmenuShadow Popup menu: blended areas when 'pumborder' is "shadow".
*hl-PmenuShadowThrough* *hl-PmenuShadowThrough*
PmenuShadownThrough PmenuShadowThrough
Popup menu: shadow corners when 'pumborder' is shadow. Popup menu: shadow corners when 'pumborder' is "shadow".
*hl-ComplMatchIns* *hl-ComplMatchIns*
ComplMatchIns Matched text of the currently inserted completion. ComplMatchIns Matched text of the currently inserted completion.
*hl-PreInsert* *hl-PreInsert*

View File

@@ -98,10 +98,10 @@ end
--- Example: --- Example:
--- ```lua --- ```lua
--- local obj = vim.system({'sleep', '10'}) --- 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) function SystemObj:kill(signal)
self._state.handle:kill(signal) self._state.handle:kill(signal)
end end

View File

@@ -2260,7 +2260,7 @@ bool ins_compl_has_autocomplete(void)
return curbuf->b_p_ac >= 0 ? curbuf->b_p_ac : p_ac; 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) static void ins_compl_fuzzy_sort(void)
{ {
unsigned cur_cot_flags = get_cot_flags(); unsigned cur_cot_flags = get_cot_flags();

View File

@@ -96,6 +96,7 @@ let test_values = {
\ 'highlight': [[&highlight], []], \ 'highlight': [[&highlight], []],
\ 'iminsert': [[0, 1], [-1, 2, 3, 999]], \ 'iminsert': [[0, 1], [-1, 2, 3, 999]],
\ 'imsearch': [[-1, 0, 1], [-2, 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'], \ 'signcolumn': [['auto', 'no', 'yes', 'number', 'yes:1', 'auto:1-9'],
\ ['', 'xxx', 'no,yes', 'auto:0-9', 'auto:9-1', 'auto:1-@']], \ ['', 'xxx', 'no,yes', 'auto:0-9', 'auto:9-1', 'auto:1-@']],
\ 'writedelay': [[0, 100], [-1, '']], \ 'writedelay': [[0, 100], [-1, '']],
@@ -300,7 +301,6 @@ let test_values = {
\ 'alpha,hex,bin'], \ 'alpha,hex,bin'],
\ ['xxx']], \ ['xxx']],
\ 'patchmode': [['', 'xxx', '.x'], [&backupext, '*']], \ 'patchmode': [['', 'xxx', '.x'], [&backupext, '*']],
\ 'pumborder': [['rounded', 'none', 'single', 'solid'], ['xxx', 'none,solid']],
"\ 'previewpopup': [['', 'height:13', 'width:20', 'highlight:That', "\ 'previewpopup': [['', 'height:13', 'width:20', 'highlight:That',
"\ " 'align:item', 'align:menu', 'border:on', 'border:off', "\ " 'align:item', 'align:menu', 'border:on', 'border:off',
"\ " 'width:10,height:234,highlight:Mine'], "\ " 'width:10,height:234,highlight:Mine'],
@@ -311,6 +311,10 @@ let test_values = {
"\ " ['xxx', 'xxx,c:yes', 'xxx:', 'xxx:,c:yes']], "\ " ['xxx', 'xxx,c:yes', 'xxx:', 'xxx:,c:yes']],
"\ 'printoptions': [['', 'header:0', 'left:10pc,top:5pc'], "\ 'printoptions': [['', 'header:0', 'left:10pc,top:5pc'],
"\ " ['xxx', 'header:-1']], "\ " ['xxx', 'header:-1']],
"\ 'pumborder': [['', 'single', 'double', 'round', 'ascii', 'shadow',
"\ " 'double,margin,shadow', 'custom:─;│;─;│;┌;┐;┘;└,shadow',
"\ " 'ascii,margin'],
"\ " ['xxx', 'margin', 'margin,shadow', 'custom:', 'custom:+;']],
"\ 'renderoptions': [[''], ['xxx']], "\ 'renderoptions': [[''], ['xxx']],
\ 'rightleftcmd': [['search'], ['xxx']], \ 'rightleftcmd': [['search'], ['xxx']],
\ 'rulerformat': [['', 'xxx'], ['%-', '%(', '%15(%%']], \ 'rulerformat': [['', 'xxx'], ['%-', '%(', '%15(%%']],