Update: which-key pop-up closes by q+leader key combination

This commit is contained in:
hyzen
2026-07-02 01:29:08 +05:30
parent 8e0d7b2eec
commit 5a35243110
2 changed files with 6 additions and 2 deletions

View File

@@ -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 = {
{ '<leader>q', group = 'Quit' },
},
} },
-- Git related plugins
{

View File

@@ -445,7 +445,7 @@ local function close_window(mode)
save_if_needed(perform_close)
end
-- Keymaps
vim.keymap.set('n', '<leader>q', function()
vim.keymap.set('n', '<leader>qq', function()
close_window()
end, { desc = 'Close window' })
vim.keymap.set('n', '<leader>qy', function()