Skip to content

Commit f73dfc2

Browse files
committed
chore(map): deprecated vim.diagnostic.goto_next(), use vim.diagnostic.jump() instead
1 parent f81c13f commit f73dfc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/mappings.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ M.lsp = function()
135135

136136
-- Diagnostics mappings
137137
map("n", "dp", function()
138-
vim.diagnostic.goto_prev { float = false }
138+
vim.diagnostic.jump( { count = 1, float = true})
139139
end, "Diagnostics goto_prev")
140140

141141
map("n", "dn", function()
142-
vim.diagnostic.goto_next { float = false }
142+
vim.diagnostic.jump( { count = -1, float = true})
143143
end, "Diagnostics goto_next")
144144

145145
map("n", "<leader>ds", vim.diagnostic.setloclist, "Add buffer diagnostics to the location list.")

0 commit comments

Comments
 (0)