All Projects → luukvbaal → stabilize.nvim

luukvbaal / stabilize.nvim

Licence: BSD-2-Clause license
Neovim plugin to stabilize window open/close events.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to stabilize.nvim

nvim-todoist.lua
Todoist plugin for Neovim in pure Lua, inspired by https://github.com/romgrk/todoist.nvim, which you should use instead
Stars: ✭ 22 (-92.54%)
Mutual labels:  nvim, neovim-plugin
aerial.nvim
Neovim plugin for a code outline window
Stars: ✭ 485 (+64.41%)
Mutual labels:  nvim, neovim-plugin
code runner.nvim
Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
Stars: ✭ 234 (-20.68%)
Mutual labels:  nvim, neovim-plugin
nvim-config
My neovim config
Stars: ✭ 63 (-78.64%)
Mutual labels:  nvim, neovim-plugin
firvish.nvim
WIP
Stars: ✭ 31 (-89.49%)
Mutual labels:  nvim, neovim-plugin
modes.nvim
Prismatic line decorations for the adventurous vim user
Stars: ✭ 299 (+1.36%)
Mutual labels:  nvim, neovim-plugin
feline.nvim
A minimal, stylish and customizable statusline for Neovim written in Lua
Stars: ✭ 867 (+193.9%)
Mutual labels:  nvim, neovim-plugin
Lualine.nvim
A blazing fast and easy to configure neovim statusline written in pure lua.
Stars: ✭ 198 (-32.88%)
Mutual labels:  nvim, neovim-plugin
tabby.nvim
A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
Stars: ✭ 232 (-21.36%)
Mutual labels:  nvim, neovim-plugin
cargo-limit
Cargo with less noise: warnings are skipped until errors are fixed, Neovim integration, etc.
Stars: ✭ 105 (-64.41%)
Mutual labels:  nvim, neovim-plugin
qf helper.nvim
A collection of improvements for the quickfix buffer
Stars: ✭ 70 (-76.27%)
Mutual labels:  nvim, neovim-plugin
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (-66.1%)
Mutual labels:  nvim, neovim-plugin
Coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Stars: ✭ 18,268 (+6092.54%)
Mutual labels:  nvim, neovim-plugin
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (-69.15%)
Mutual labels:  nvim, neovim-plugin
Lsp Status.nvim
Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline
Stars: ✭ 201 (-31.86%)
Mutual labels:  nvim, neovim-plugin
neovim-lua-plugin-boilerplate
Starter template for creating Neovim Lua plugins
Stars: ✭ 28 (-90.51%)
Mutual labels:  nvim, neovim-plugin
Nvim Bqf
Better quickfix window in Neovim, polish old quickfix window.
Stars: ✭ 120 (-59.32%)
Mutual labels:  nvim, neovim-plugin
Acid.nvim
Asynchronous Clojure Interactive Development
Stars: ✭ 147 (-50.17%)
Mutual labels:  nvim, neovim-plugin
awesome-neovim
Awesome Configurations for C/C++,Zig,Web and Lua development in NeoVim
Stars: ✭ 54 (-81.69%)
Mutual labels:  nvim, neovim-plugin
nvim-highlite
A colorscheme template that is "lite" on logic for the developer.
Stars: ✭ 163 (-44.75%)
Mutual labels:  nvim, neovim-plugin

stabilize.nvim

Neovim plugin to stabilize buffer content on window open/close events. There is a currently outstanding PR to Neovim core that supercedes this plugin.

Demo

See example comparing default behavior and with stabilize.nvim active:

img

Install

Install with vim-plug:

Plug 'luukvbaal/stabilize.nvim'
call plug#end()

lua << EOF
require("stabilize").setup()
EOF

Install with packer:

use {
	"luukvbaal/stabilize.nvim",
	config = function() require("stabilize").setup() end
}

Usage

The plugin will stabilize your buffer content on window open/close events after calling require("stabilize").setup().

Configuration

Default options

{
	force = true, -- stabilize window even when current cursor position will be hidden behind new window
	forcemark = nil -- set context mark to register on force event which can be jumped to with '<forcemark>
	ignore = {  -- do not manage windows matching these file/buftypes
		filetype = { "help", "list", "Trouble" },
		buftype = { "terminal", "quickfix", "loclist" }
	}
	nested = nil -- comma-separated list of autocmds that wil trigger the plugins window restore function
}

Note

Because autocmds are by default not nested (:h autocmd-nested), windows spawned by autocommands won't trigger the plugins window restore function. To stabilize these window events, a config option nested is exposed which can be used to trigger doautocmd User StabilizeRestore.

For example, to stabilize window events such as opening the quickfix list (or trouble.nvim) on QuickFixCmdPost or DiagnosticChanged events. For neovim >= 0.7, set the nested cfg to(mind the wildcard):

nested = "QuickFixCmdPost,DiagnosticChanged *"

The plugin keeps track of the number of windows on the current tabpage and will skip restoring the windows if the number of windows hasn't changed since before firing these nested events(performance consideration).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].