mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-09-19 17:23:13 +02:00
Update: which-key pop-up closes by q+leader key combination
This commit is contained in:
6
init.lua
6
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 = {
|
||||
{ '<leader>q', group = 'Quit' },
|
||||
},
|
||||
} },
|
||||
|
||||
-- Git related plugins
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user