From bbd5b63d51488724fdab650c6a5fc77de856fe3e Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 Jul 2024 20:50:38 +0200 Subject: [PATCH] fix(menu): use 0 as bufnr to set winoption makes this usable with nightly --- lua/neocomplete/menu/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neocomplete/menu/init.lua b/lua/neocomplete/menu/init.lua index d4bc946..b5ad5ba 100644 --- a/lua/neocomplete/menu/init.lua +++ b/lua/neocomplete/menu/init.lua @@ -60,7 +60,7 @@ function Menu:open_win(offset) col = -offset, zindex = 1000, }) - vim.wo[self.winnr][self.buf].scrolloff = 0 + vim.wo[self.winnr][0].scrolloff = 0 if self.config.ui.menu.scrollbar then self.scrollbar.win = vim.api.nvim_open_win(self.scrollbar.buf, false, {