From 2d980e37c836a52074bea59bbeeed9b9062c26db Mon Sep 17 00:00:00 2001 From: Mtende <103486923+Mtendekuyokwa19@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:44:01 +0200 Subject: [PATCH] docs(diagnostics): default keymaps #34400 --- runtime/doc/diagnostic.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index fa684c246f..6c66ed0b0e 100644 --- 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 +- 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`: