fix: vim.diagnostic.goto_{next/prev} is deprecated

- {],[}d are default since nvim 0.10
	- https://neovim.io/doc/user/news-0.10.html#_new-features
This commit is contained in:
Fabrice Mouhartem 2025-04-03 14:22:17 +02:00
parent 62fc616ee8
commit 2685b0f813
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -21,8 +21,6 @@ keymap('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
keymap('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
-- Diagnostic keymaps
keymap('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' })
keymap('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' })
keymap('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
keymap('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' })