neovim

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

commit 2d980e37c836a52074bea59bbeeed9b9062c26db
parent 336b46a8794591ed40939f973b6a19c132e75f60
Author: Mtende <103486923+Mtendekuyokwa19@users.noreply.github.com>
Date:   Mon,  9 Jun 2025 17:44:01 +0200

docs(diagnostics): default keymaps #34400


Diffstat:
Mruntime/doc/diagnostic.txt | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt @@ -38,6 +38,19 @@ optionally supplied). A good rule of thumb is that if a method is meant to modify the diagnostics for a buffer (e.g. |vim.diagnostic.set()|) then it requires a namespace. +============================================================================== +DEFAULTS *diagnostic-defaults* + +These diagnostic keymaps are created unconditionally when Nvim starts: +- |]d| is mapped in Normal mode to jump the next diagnostic in the current + buffer +- |[d| is mapped in Normal and Visual mode to jump to the previous diagnostic + in th current buffer +- |]D| is mapped in Normal mode to jump to the last diagnostic in the current buffer +- |[D| is mapped in Normal mode to jump to the first diagnostic in the current + buffer +- <C-w>d is mapped in normal mode to show diagnostic under cursor. + *vim.diagnostic.severity* *diagnostic-severity* The "severity" key in a diagnostic is one of the values defined in `vim.diagnostic.severity`: