diff --git a/neovim/.config/nvim/after/plugin/remaps.lua b/neovim/.config/nvim/after/plugin/remaps.lua index ccf20df..6921a7c 100644 --- a/neovim/.config/nvim/after/plugin/remaps.lua +++ b/neovim/.config/nvim/after/plugin/remaps.lua @@ -24,3 +24,14 @@ vim.keymap.set("n", "tn", ":tabnew") vim.keymap.set("n", "tN", ":-tabnew") vim.keymap.set("n", "H", ":tabprev") vim.keymap.set("n", "L", ":tabnext") + +-- quickfix +vim.keymap.set("n", "", function() + if vim.bo.ft == "qf" then + vim.cmd(":cclose") + else + vim.cmd(":copen") + end +end) +vim.keymap.set("n", "n", vim.cmd.cnext) +vim.keymap.set("n", "N", vim.cmd.cprevious) diff --git a/neovim/.config/nvim/after/plugin/telescope.lua b/neovim/.config/nvim/after/plugin/telescope.lua index 08b99dd..3204dc3 100644 --- a/neovim/.config/nvim/after/plugin/telescope.lua +++ b/neovim/.config/nvim/after/plugin/telescope.lua @@ -13,9 +13,13 @@ telescope.setup({ [""] = actions.move_selection_worse, [""] = actions.move_selection_better, [""] = layout_actions.toggle_preview, + [""] = actions.add_selected_to_qflist, + [""] = actions.toggle_selection, }, n = { [""] = layout_actions.toggle_preview, + [""] = actions.add_selected_to_qflist, + [""] = actions.toggle_selection, }, }, },