neovim

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

commit 8c0c34786e5468bf0f0d0fbc60aeafa3febb5337
parent d93e150888558ddab1722a81427c5943c5be87df
Author: Aymen Hafeez <49293546+aymenhafeez@users.noreply.github.com>
Date:   Sun, 25 Jan 2026 20:11:01 +0000

docs(diagnostic): fix indentation in diagnostic-on-jump-example (#37516)


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

diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt @@ -197,14 +197,14 @@ following uses the `virtual_lines` handler when jumping to a diagnostic: >lua --- @param diagnostic? vim.Diagnostic --- @param bufnr integer local function on_jump(diagnostic, bufnr) - if not diagnostic then return end - - vim.diagnostic.show( - virt_lines_ns, - bufnr, - { diagnostic }, - { virtual_lines = { current_line = true }, virtual_text = false } - ) + if not diagnostic then return end + + vim.diagnostic.show( + virt_lines_ns, + bufnr, + { diagnostic }, + { virtual_lines = { current_line = true }, virtual_text = false } + ) end vim.diagnostic.config({ jump = { on_jump = on_jump } })