Fix: alpha in normal mode. New tab keybind to fix all tab/buffer problems.

This commit is contained in:
psychhim
2025-10-15 18:36:08 +05:30
parent a6a8f01ebf
commit cc2a791779
5 changed files with 22 additions and 103 deletions

View File

@@ -310,7 +310,7 @@ end, { desc = 'Discard changes in current window & quit' })
-- [[ Close Neovim ]]
-- Function to close Neovim, discarding all unsaved changes if confirmed
_G.close_nvim_with_prompt = function()
local function close_nvim_with_prompt()
-- Get list of all listed buffers
local buffers = vim.fn.getbufinfo { buflisted = 1 }
-- Check for unsaved buffers
@@ -332,10 +332,10 @@ _G.close_nvim_with_prompt = function()
vim.cmd 'qa!'
else
-- Cancel quitting
print '\nCancelled closing Neovim.'
print 'Cancelled closing Neovim.'
end
end
vim.keymap.set('n', '<leader>qa', _G.close_nvim_with_prompt, { noremap = true, silent = true, desc = 'Quit Neovim' })
vim.keymap.set('n', '<leader>qa', close_nvim_with_prompt, { noremap = true, silent = true, desc = 'Quit Neovim' })
-- [[ Switch below/right split windows ]]
vim.keymap.set('n', '<leader><Tab>', '<C-W><C-W>')