Skip to content

Commit a6c70dd

Browse files
chore(build): auto-generate docs
1 parent 57752e0 commit a6c70dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/configuration/general.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,12 @@ end, { desc = "Format" })
312312

313313
-- diagnostic
314314
local diagnostic_goto = function(next, severity)
315-
local go = next and vim.diagnostic.goto_next or vim.diagnostic.goto_prev
316-
severity = severity and vim.diagnostic.severity[severity] or nil
317315
return function()
318-
go({ severity = severity })
316+
vim.diagnostic.jump({
317+
count = (next and 1 or -1) * vim.v.count1,
318+
severity = severity and vim.diagnostic.severity[severity] or nil,
319+
float = true,
320+
})
319321
end
320322
end
321323
map("n", "<leader>cd", vim.diagnostic.open_float, { desc = "Line Diagnostics" })

0 commit comments

Comments
 (0)