An open API service indexing awesome lists of open source software.

https://github.com/aronjohanns/smooth-resize.nvim

A super simple smooth resize plugin for neovim
https://github.com/aronjohanns/smooth-resize.nvim

neovim

Last synced: 3 months ago
JSON representation

A super simple smooth resize plugin for neovim

Awesome Lists containing this project

README

          

# 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](https://github.com/sedm0784/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 (`>`, `<`, `+`, `-`).

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

# Installation

## Lazy.nvim

```lua
{
"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.

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