From 842c704a9943a9557cf399d4545cd9c77df9ca9e Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 7 Aug 2024 12:16:39 +0200 Subject: [PATCH] use quickfix instead of locations list for diagnostics --- lua/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index b2035e0..94295fe 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -9,7 +9,7 @@ vim.keymap.set('n', '', 'nohlsearch') vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' }) vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' }) -vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) +vim.keymap.set('n', 'q', vim.diagnostic.setqflist, { desc = 'Open diagnostic [Q]uickfix list' }) -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping