From a69a39fde7e1a8bb151961e1eed954a59b5e651c Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Wed, 24 Jul 2024 22:33:05 +0200 Subject: [PATCH] nvim: navigate diagnostics with new keys from neovim 0.10 --- config/nvim/lua/fschauen/keymap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/fschauen/keymap.lua b/config/nvim/lua/fschauen/keymap.lua index 398a4b2..4e6cc13 100644 --- a/config/nvim/lua/fschauen/keymap.lua +++ b/config/nvim/lua/fschauen/keymap.lua @@ -91,8 +91,8 @@ M.setup = function() local ui = require("fschauen.util.icons").ui -- navigate diagnostics - map("n", "", diagnostic.goto_next, { desc = ui.Diagnostic.." [d]iagnostic [n]ext" }) - map("n", "", diagnostic.goto_prev, { desc = ui.Diagnostic.." [d]iagnostic [p]revious" }) + map("n", "]d", diagnostic.goto_next, { desc = ui.Diagnostic.." [d]iagnostic [n]ext" }) + map("n", "[d", diagnostic.goto_prev, { desc = ui.Diagnostic.." [d]iagnostic [p]revious" }) map("n", "dd", diagnostic.toggle, { desc = ui.Diagnostic.." [d]iagnostic enable/[d]isable" }) map("n", "do", diagnostic.open_float, { desc = ui.Diagnostic.." [d]iagnostic [o]pen" }) map("n", "dh", diagnostic.hide, { desc = ui.Diagnostic.." [d]iagnostic [h]ide" })