From f84bb2fed9b8725ec6ff5cbfd8e218e26b37b2c9 Mon Sep 17 00:00:00 2001 From: Dennis Chan Date: Tue, 27 May 2025 17:01:08 +0800 Subject: [PATCH] add keymap for vim open diagnostic float --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index a50f76ac..f4287a75 100644 --- a/init.lua +++ b/init.lua @@ -84,6 +84,7 @@ vim.keymap.set('n', '', 'nohlsearch') -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) +vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Open diagnostic [E]rror' }) -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- for people to discover. Otherwise, you normally need to press , which