Skip to content

Commit

Permalink
feat(menu): set &winfixbuf in menu windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Mar 24, 2024
1 parent 64c6df5 commit a5f3d6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/dropbar/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ function dropbar_menu_t:open_win()
self.win = vim.api.nvim_open_win(self.buf, true, self._win_configs)
vim.wo[self.win].scrolloff = 0
vim.wo[self.win].sidescrolloff = 0
vim.wo[self.win].winfixbuf = true
vim.wo[self.win].winhl = table.concat({
'NormalFloat:DropBarMenuNormalFloat',
'FloatBorder:DropBarMenuFloatBorder',
Expand Down

2 comments on commit a5f3d6a

@fira42073
Copy link

@fira42073 fira42073 commented on a5f3d6a Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting an error message after update

E5108: Error executing lua ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:531: Unknown option 'winfixbuf'
stack traceback:
        [C]: in function '__newindex'
        ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:531: in function 'open_win'
        ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:679: in function 'open'
        ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:1137: in function 'toggle'
        .../site/pack/packer/start/dropbar.nvim/lua/dropbar/bar.lua:200: in function 'on_click'
        .../site/pack/packer/start/dropbar.nvim/lua/dropbar/bar.lua:587: in function <.../site/pack/packer/start/dropbar.nvim/lua/dropbar/bar.lua:581>
NVIM v0.10.0-dev-2331+g170c890dc
Build type: RelWithDebInfo
LuaJIT 2.1.1707061634

@Bekaboo
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting an error message after update

E5108: Error executing lua ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:531: Unknown option 'winfixbuf'
stack traceback:
        [C]: in function '__newindex'
        ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:531: in function 'open_win'
        ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:679: in function 'open'
        ...site/pack/packer/start/dropbar.nvim/lua/dropbar/menu.lua:1137: in function 'toggle'
        .../site/pack/packer/start/dropbar.nvim/lua/dropbar/bar.lua:200: in function 'on_click'
        .../site/pack/packer/start/dropbar.nvim/lua/dropbar/bar.lua:587: in function <.../site/pack/packer/start/dropbar.nvim/lua/dropbar/bar.lua:581>
NVIM v0.10.0-dev-2331+g170c890dc
Build type: RelWithDebInfo
LuaJIT 2.1.1707061634

You should update your nvim version

Please sign in to comment.