folke / edgy.nvim

Easily create and manage predefined window layouts, bringing a new edge to your workflow
Apache License 2.0
783 stars 14 forks source link

bug: Dropbar and Edgy not working together properly #44

Closed franroa closed 11 months ago

franroa commented 11 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10-dev

Operating system/version

Manjaro 6.1.44

Describe the bug

Using LazyVim, with edgy default's config and dropbar default's config an error is thrown.

I have also created an issue in dropbar project, because I am not sure where could be the root's cause: https://github.com/Bekaboo/dropbar.nvim/issues/72

Steps To Reproduce

  1. Install LazyVim
  2. add dropbar plugin
  3. Open a file
  4. Open neo-tree (with edgy layout)

Expected Behavior

No error is thrown

Repro

No idea how to reproduce with minimal config. The issue appears on a fresh LazyVim config with edgy active and dropbar plugin installed
thehappyboy commented 11 months ago

I have same problem, when using edgy and dropbar

Error 13时41分44秒 msg_show.lua_error 处理 WinResized autocmd "*" 时发生错误: 13时41分44秒 msg_show Error executing lua callback: ...john/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:101: Invalid window id: 1698 stack traceback: [C]: in function 'nvim_win_get_buf' ...john/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:101: in function <...john/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:91>

thehappyboy commented 11 months ago

Now, I disabled update events "WinResized" to solve this issue.

{
    "Bekaboo/dropbar.nvim",
    event = "VeryLazy",
    opts = {
        general = {
            update_events = {
                win = {
                    "CursorMoved",
                    "CursorMovedI",
                    "WinEnter",
                    -- "WinResized",
                },
            },
        },
    },
},
folke commented 11 months ago

Seems like there's a work-around. closing...

franroa commented 11 months ago

thanks for the workaround @thehappyboy