commit c016981fef126c0bde3b39cc6bd45d6bfcd5fb98
parent d0cb0cd888fbb0c8e627ddb92f316a1c9dfc2c47
Author: Chris Bracken <chris@bracken.jp>
Date: Sat, 31 Aug 2024 15:33:07 -0700
vim: replace <leader>dq mapping with <leader>qf
qf for quickfix.
Also eliminates d[ and d] mappings; [d and]d are provided by default by
nvim-lspconfig.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua
@@ -30,10 +30,10 @@ vim.keymap.set('n', '<leader>fr', '<cmd>FzfLua lsp_references<CR>')
vim.keymap.set('n', '<leader>fs', '<cmd>FzfLua lsp_document_symbols<CR>')
-- Toggle diagnostics.
-vim.keymap.set('n', '<leader>dq', vim.diagnostic.setloclist, opts)
vim.keymap.set('n', '<leader>dd', function()
vim.diagnostic.enable(not vim.diagnostic.is_enabled())
end, { silent = true })
+vim.keymap.set("n", "<leader>qf", vim.diagnostic.setqflist, {silent = true})
-- Key mapping to toggle absolute/relative numbering.
vim.keymap.set('n', '<leader>n', function()