Skip to content

mboyov/pane-resizer.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License


Logo

Pane Resizer

A Neovim plugin to dynamically resize panes, focusing on the active window and excluding NvimTree and floating windows.


Pane Resizer is a Neovim plugin that automates pane resizing to optimize workspace layouts. With Pane Resizer, you can keep specific windows like NvimTree at a fixed width, distribute space evenly among inactive panes, and configure custom resizing for the focused pane.

Features

  • Automatic Pane Resizing: Automatically resizes the focused pane to a user-defined percentage.
  • NvimTree Handling: Keeps NvimTree at a fixed width, even when switching focus.
  • Floating Windows Exclusion: Ignores floating windows during pane resizing.

Why use this?

  • Efficiency: Dynamically resize panes to enhance workflow by focusing on essential windows.
  • Customization: Offers flexible settings for the size of focused windows, NvimTree, and other panes.
  • Compatibility: Designed to work seamlessly with floating windows.

Installation & Configuration

1. Installation

Using your preferred plugin manager:

-- Using LazyVim
return {
  {
    "mboyov/pane-resizer.nvim",
    config = function()
      require('pane_resizer').setup({
        NVIMTREE_WIDTH = 40,              -- Set NvimTree width (default is 30)
        FOCUSED_WIDTH_PERCENTAGE = 0.5,   -- Resize focused window to 50% (default is 60%)
      })
    end,
  },
}

2. Use Cases:

  • Users who work with multiple splits and need a focused window to occupy a larger portion of the screen.
  • Users who want to keep NvimTree at a fixed width.
  • Users who use floating windows and want them excluded from the resizing logic.

Contributing

Feel free to open issues or pull requests if you have suggestions for improvements.

License

Distributed under the MIT License. See LICENSE for more information.

Credits

  • Neovim for creating an extensible editor that makes plugins like this possible.
  • Thanks to the Neovim community for their valuable resources and examples.

About

A Neovim plugin to dynamically resize panes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages