aboutsummaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/keys.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/user/keys.lua b/lua/user/keys.lua
index a70290f..0d275d2 100644
--- a/lua/user/keys.lua
+++ b/lua/user/keys.lua
@@ -296,3 +296,12 @@ map("n", "gR", "<CMD>TroubleToggle lsp_references<CR>")
-- Replacer
map('n', '<Leader>qr', ':lua require("replacer").run()<CR>')
+
+map("n", "<leader>q", function()
+ if vim.fn.getqflist({ winid = 0 }).winid ~= 0 then
+ require('plugins.quickfix').close()
+ else
+ require('plugins.quickfix').open()
+ --require("quickfix").open()
+ end
+end, { desc = "Toggle quickfix window" })