Skip to content

Commit 039058b

Browse files
committed
add keymaps for navigating quickfix list
1 parent cf29b34 commit 039058b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/keymaps.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
77

88
-- Diagnostic keymaps
99
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
10+
vim.keymap.set('n', '<leader>[', '<cmd>cprev<CR>', { desc = 'Jump to next quickfix item' })
11+
vim.keymap.set('n', '<leader>]', '<cmd>cnext<CR>', { desc = 'Jump to previous quickfix item' })
1012

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

0 commit comments

Comments
 (0)