Skip to content

mthnglac/maximizer.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maximizer.nvim

Simple window maximizer/restorer. Toggle current window between full viewport size and original dimensions.

✨ Features

  • Single key toggle <Space>m
  • Preserves original window size
  • Statusline integration (vim.t.maximized)
  • :MaximizeToggle command
  • Auto re-maximize after resize

📦 Installation

Lazy.nvim

{
    'mthnglac/maximizer.nvim',
    config = function()
        require('maximizer').setup()
    end
}

🚀 Usage

Default: <Space>m or :MaximizeToggle

Custom keymap:

require('maximizer').setup({
    keymap = '<Space>m',
    disable_keymaps = false,
})

⚙️ Options

Option Type Default Description
keymap string "<Space>m" Toggle keymap
disable_keymaps boolean false Disable default keymaps

⚙️ Statusline Integration

-- plugins/lualine-nvim.lua
local function max_status()
    return vim.t.maximized and '󰖭 MAX' or ''
end

require(‘lualine’).setup({
    sections = {
        lualine_a = {
            ‘mode’, max_status
        },
    }
})

Commands

  • :MaximizeToggle — Toggle maximization of the current window.

Documentation

  • :help maximizer.nvim for full documentation.

License

MIT

About

Simple window maximizer/restorer for Neovim

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages