Skip to content

Commit f84bb2f

Browse files
committed
add keymap for vim open diagnostic float
1 parent ad645c0 commit f84bb2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
8484

8585
-- Diagnostic keymaps
8686
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
87+
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open diagnostic [E]rror' })
8788

8889
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
8990
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which

0 commit comments

Comments
 (0)