Maximize.nvim
Maximize window splits. A Neovim plugin written in Lua!
Install / Use
/learn @declancm/Maximize.nvimREADME
maximize.nvim
Maximize Neovim windows.
✨ Features
- Toggle maximizing the current window without any ugly borders.
- Has builtin integration for the following plugins:
- aerial.nvim
- nvim-dap-ui
- nvim-tree.lua
🛠️ Requirements
- Neovim >= 0.8.0 (use a tagged version for older Neovim versions)
📦 Installation
Install with your favourite plugin manager and run the setup function.
Packer
use {
'declancm/maximize.nvim',
config = function() require('maximize').setup() end
}
Lazy
return {
'declancm/maximize.nvim',
config = true
}
ℹ️ Usage
Vim Commands
-
Toggle maximizing the current window:
:Maximize
Lua API
-
Toggle maximizing the current window:
require('maximize').toggle() -
Maximize the current window:
require('maximize').maximize() -
Restore windows:
require('maximize').restore()
⚙️ Configuration
A settings table can be passed into the setup function for custom options.
Default Options
{
plugins = {
aerial = { enable = true }, -- enable aerial.nvim integration
dapui = { enable = true }, -- enable nvim-dap-ui integration
tree = { enable = true }, -- enable nvim-tree.lua integration
}
}
📅 User Events
The following user events are triggered:
- WindowMaximizeStart: before maximizing
- WindowRestoreEnd: after restoring
🚥 statusline & winbar
Use the variable vim.t.maximized to check whether the tab has a maximized window.
Lualine
local function maximize_status()
return vim.t.maximized and ' ' or ''
end
require('lualine').setup {
sections = {
lualine_c = { maximize_status }
}
}
winbar
-- ~/.config/nvim/lua/winbar.lua
local M = {}
M.maximize_status = function()
return vim.t.maximized and ' ' or ''
end
return M
-- ~/.config/nvim/init.lua
vim.o.winbar = "%{%v:lua.require('winbar').maximize_status()%}"
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
