From c0ab67d3a41bc54acfd17f835c66f4d1e00ef884 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 20 Mar 2024 22:18:10 +0000 Subject: [PATCH] Use [d & ]d for moving around diagnostics in normal mode --- lua/plugins/completions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 5bf62da..6d0f121 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -106,8 +106,8 @@ return { -- Diagnostic mappings -- TODO: trouble.nvim mappings instead? https://youtu.be/MuUrCcvE-Yw?t=631 - vim.keymap.set('n', '', vim.diagnostic.goto_next, { remap = false }) - vim.keymap.set('n', '', vim.diagnostic.goto_prev, { remap = false }) + vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { remap = false }) + vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { remap = false }) vim.keymap.set('n', 'sd', vim.diagnostic.open_float, { remap = false }) -- LSP mappings created when attached to a buffer