Description
I've been experiencing incosistent resizing behaviour and have finally got around to reproducing it in a minimal config. Not sure if this is a bug or just me doing something wrong in my config.
Minimal config:
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
---@diagnostic disable-next-line: missing-fields
require("lazy.minit").repro({
spec = {
{
"shortcuts/no-neck-pain.nvim",
version = "*",
enabled = true,
opts = {
debug = true,
width = 100,
minSideBufferWidth = 10,
autocmds = {
skipEnteringNoNeckPainBuffer = true,
},
buffers = {
right = { enabled = false },
},
},
},
{
"ibhagwan/fzf-lua",
keys = {
{
"<leader>vh",
function()
FzfLua.helptags()
end,
desc = "Live grep help tags",
},
},
config = function(_, opts)
require("fzf-lua").setup(opts)
end,
},
},
})
Help much appreciated! Hope anyone can reproduce.
Neovim version
0.9.x
Steps to reproduce
- Download the minimal config above (repro.lua) and open nvim with
nvim -u repro.lua
- Toggle NNP with the
NoNeckPain command
- Open fzf-lua's helptags menu with "vh", i.e., "\vh".
- Hit enter on the first result. The help page should open as a split above the empty buffer. NNP's left buffers remains strechted across both buffers on the left.
- Close the help page buffer with
- Repeat 3 and 4. Now the help page buffer still opens above the empty buffer, but it stretches across the whole screen. NNP's left buffer only stretches along the bottom buffer.
Relevant log output
[nnp@public_api_toggle] >> debouncer triggered
[nnp@public_api_toggle] calling enable for tab 1
[nnp@set_tab] registered new tab 1
[nnp@public_api_toggle] computed columns: 0 - 1
[nnp@public_api_toggle] init called on tab 1 for current window 1000
[nnp@get_side_width:left] 128 width available, 1 vsplit columns
[nnp@get_side_width:left] 128/128 after integrations - 1 columns remaining
[nnp@get_side_width:left] 28/128 after vsplits - 0 columns remaining
[nnp@get_side_width:right] disabled
[nnp@colors.init] skipping color initialization for side left
[nnp@ui.create_side_buffers:left] win 1003 with width 14
[nnp@public_api_toggle] rerouting focus of 1003 to 1000
[nnp@public_api_toggle] computed columns: 1 - 2
[nnp@WinClosed:1005] computed columns: 2 - 2
[nnp@WinEnter:1000] computed columns: 2 - 2
[nnp@WinEnter:1009] computed columns: 2 - 2
[nnp@WinClosed:1009] computed columns: 2 - 2
[nnp@TermClose:1011] computed columns: 2 - 0
[nnp@TermClose:1011] init called on tab 1 for current window 1000
[nnp@get_side_width:left] 128 width available, 0 vsplit columns
[nnp@get_side_width:left] 128/128 after integrations - -1 columns remaining
[nnp@get_side_width:left] 128/128 after vsplits - -1 columns remaining
[nnp@ui.create_side_buffers:left] win 1003 with width 64
[nnp@WinClosed:1011] computed columns: 0 - 2
[nnp@WinClosed:1011] computed columns: 2 - 2
[nnp@WinEnter:1014] computed columns: 2 - 2
[nnp@WinClosed:1011] >> debouncer triggered
[nnp@WinClosed:1011] init called on tab 1 for current window 1000
[nnp@get_side_width:left] 128 width available, 2 vsplit columns
Self-service
Description
I've been experiencing incosistent resizing behaviour and have finally got around to reproducing it in a minimal config. Not sure if this is a bug or just me doing something wrong in my config.
Minimal config:
Help much appreciated! Hope anyone can reproduce.
Neovim version
0.9.x
Steps to reproduce
nvim -u repro.luaNoNeckPaincommandRelevant log output
Self-service