Skip to content

Maximize and restore the current window in Neovim, written in Lua

License

Notifications You must be signed in to change notification settings

0x00-ketsu/maximizer.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maximizer.nvim

Maximize and restore the current window in Neovim.

sample.mp4

Installation

  • Lazy

    -- Lua
    require('lazy').setup({
      "0x00-ketsu/maximizer.nvim",
      config = function()
        require("maximizer").setup {
          -- your configuration comes here
          -- or leave it empty to use the default settings
          -- refer to the configuration section below
        },
      end
    })
  • Packer

    -- Lua
    use {
      "0x00-ketsu/maximizer.nvim",
      config = function()
        require("maximizer").setup {
          -- your configuration comes here
          -- or leave it empty to use the default settings
          -- refer to the configuration section below
        }
      end
    }

Setup

No settings yet!

Keymaps

vim.api.nvim_set_keymap('n', 'mt', '<cmd>lua require("maximizer").toggle()<CR>', {silent = true, noremap = true})
vim.api.nvim_set_keymap('n', 'mm', '<cmd>lua require("maximizer").maximize()<CR>', {silent = true, noremap = true})
vim.api.nvim_set_keymap('n', 'mr', '<cmd>lua require("maximizer").restore()<CR>', {silent = true, noremap = true})

API

  • Check if current is maximized

    vim.t.is_maximized

    Example

    local maximizer_status = vim.t.is_maximized and ' 🔍 ' or ''

Inspiration by

vim-maximizer by Szymon Wrozynski

License

MIT

About

Maximize and restore the current window in Neovim, written in Lua

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages