From 5a352431108dfae10650ebe12710ecc68f5e31f1 Mon Sep 17 00:00:00 2001 From: hyzen Date: Thu, 2 Jul 2026 01:29:08 +0530 Subject: [PATCH] Update: which-key pop-up closes by q+leader key combination --- init.lua | 6 +++++- lua/keymaps.lua | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 23aac0a..a82f8f9 100644 --- a/init.lua +++ b/init.lua @@ -49,7 +49,11 @@ end require('lazy').setup({ -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', event = 'VeryLazy', opts = {} }, + { 'folke/which-key.nvim', event = 'VeryLazy', opts = { + spec = { + { 'q', group = 'Quit' }, + }, + } }, -- Git related plugins { diff --git a/lua/keymaps.lua b/lua/keymaps.lua index f8a9f5b..b962d59 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -445,7 +445,7 @@ local function close_window(mode) save_if_needed(perform_close) end -- Keymaps -vim.keymap.set('n', 'q', function() +vim.keymap.set('n', 'qq', function() close_window() end, { desc = 'Close window' }) vim.keymap.set('n', 'qy', function()