project moved to https://github.com/Abstract-IDE/abstract-plugs.nvim
Neovim window management plugin that provides a command framework for window-related utilities.
- Toggle maximize/restore: Quickly maximize the current window and restore its previous dimensions.
Use your favorite plugin manager. For lazy.nvim:
{
'Abstract-IDE/abstract-window.nvim',
opts = {}
}
:AbstractWindow toggle-win-max
toggle-win-max
: Toggles the current window between maximized and its last size.
Bind to any key you prefer (e.g. <leader>m
):
vim.keymap.set('n', '<leader>m', ':AbstractWindow toggle-win-max<CR>', { noremap = true, silent = true })
-- OR
vim.keymap.set('n', '<leader>m', function() require("abstract-window").toggle.maximize() end, { noremap = true, silent = true })