mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-09-20 01:03:05 +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({
|
require('lazy').setup({
|
||||||
-- Useful plugin to show you pending keybinds.
|
-- 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
|
-- Git related plugins
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ local function close_window(mode)
|
|||||||
save_if_needed(perform_close)
|
save_if_needed(perform_close)
|
||||||
end
|
end
|
||||||
-- Keymaps
|
-- Keymaps
|
||||||
vim.keymap.set('n', '<leader>q', function()
|
vim.keymap.set('n', '<leader>qq', function()
|
||||||
close_window()
|
close_window()
|
||||||
end, { desc = 'Close window' })
|
end, { desc = 'Close window' })
|
||||||
vim.keymap.set('n', '<leader>qy', function()
|
vim.keymap.set('n', '<leader>qy', function()
|
||||||
|
|||||||
Reference in New Issue
Block a user