home: vim: lua: lsp: add count to diagnostic maps

This commit is contained in:
Bruno BELANYI 2025-04-03 21:16:58 +01:00
parent 262dc48425
commit 2583cc6c12

View file

@ -28,13 +28,13 @@ end
--- Move to the next diagnostic, automatically showing the diagnostics float if --- Move to the next diagnostic, automatically showing the diagnostics float if
--- necessary. --- necessary.
M.goto_next_diagnostic = function() M.goto_next_diagnostic = function()
goto_diagnostic(1) goto_diagnostic(vim.v.count1)
end end
--- Move to the previous diagnostic, automatically showing the diagnostics float --- Move to the previous diagnostic, automatically showing the diagnostics float
--- if necessary. --- if necessary.
M.goto_prev_diagnostic = function() M.goto_prev_diagnostic = function()
goto_diagnostic(-1) goto_diagnostic(-vim.v.count1)
end end
--- shared LSP configuration callback --- shared LSP configuration callback