aronjohanns/smooth-resize.nvim

github github
split-and-window
stars 11
issues 0
subscribers 0
forks 0
CREATED

UPDATED


smooth-resize.nvim

smooth-resize.nvim is a small Neovim plugin that enables smooth, continuous window resizing with the default window resizing mappings Inspired by vim-resize-mode

Before smooth-resize.nvim (Notice repeated Ctrl-W)

Ctrl-W+Ctrl-W+Ctrl-W+Ctrl-W+Ctrl-W+Ctrl-W>Ctrl-W>

With smooth-resize.nvim

Ctrl-W+++++>>

Using with count works as well

5Ctrl-W+++++>>

[!NOTE] smooth-resize.nvim is intentionally minimal. It does not provide keyboard remapping options and relies on Neovim’s default window resizing mappings (<C-w>>, <C-w><, <C-w>+, <C-w>-).

Exit smooth resize by using any other nvim command that is not a resize command.

Installation

Lazy.nvim

{
    "aronjohanns/smooth-resize.nvim",
    opts = {}
}

Configuration

No configuration is needed but in rare cases it's required to disable smooth resize for certain filetypes. For example the file explorer Oil.nvim does not play well with smooth resize, we can therefore ignore its filetype "oil" and smooth resize will fall back to nvim default behaviour.

-- Example configuration for better integration with Oil.nvim
{
    disabled_fts = { "oil" }
}