From 4d7b16d920a0f06a5e13ee3af33f54f990d286b0 Mon Sep 17 00:00:00 2001 From: "Radu C. Martin" Date: Thu, 30 Jan 2025 16:31:44 +0100 Subject: [PATCH] feat: open float diagnostic on line --- lua/config/keymaps.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 9042d84..e7abd5a 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -7,6 +7,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', 'ld', vim.diagnostic.open_float, { desc = '[L]ine [D]iagnostic' }) -- 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