Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
1.05k stars 24 forks source link

[Bug]: Dropbar not working with neo-tree #72

Closed franroa closed 1 year ago

franroa commented 1 year ago

Description

When I open the file explorer in neo-tree, I am getting these errors:

Error detected while processing WinResized Autocommands for "*":

Error executing lua callback: ...isco/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:101: Invalid window id: 1026 stack traceback: [C]: in function 'nvim_win_get_buf' ...isco/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:101: in function <...isco/.local/share/nvim/lazy/dropbar.nvim/lua/dropbar.lua:91>

nvim version

0.10-dev (nightly)

dropbar.nvim version

latest

Operating system and version

Manjaro(arch) 6.1.44-1

Minimal config

LazyVim with dropbar default config

Steps to reproduce

  1. Open a file
  2. With the file open, open the neo-tree explorer

Expected behavior

No errors are thrown

Actual behavior

An error is thrown, although dropbar still works properly

Additional information

No response

Bekaboo commented 1 year ago

@franroa Please provide a minimal config based on the template provided. I don't debug your whole config.

franroa commented 1 year ago

I could write the commands to install LazyVim, and add to it dropbar. Would it be fine?

Bekaboo commented 1 year ago

@franroa No... LazyVim is a pretty massive config, keep the config file as simple as possible. Only install plugins that is necessary to reproduce the error. Do not use a plugin manager.

franroa commented 1 year ago

I have just figured out which causes the problem. There is an incompatibility between dropbar and edgy. I have no idea how to write a minimal config though. I will create an issue on LazyVim and link this one, I think from LazyVim side is much easier to solve this, I guess, since in order to have the edgy default config I also need other plugins to be running

franroa commented 1 year ago

This is the issue on edgy: https://github.com/folke/edgy.nvim/issues/44

Bekaboo commented 1 year ago

@franroa Glad to hear that you've located the problem! It is possible that some hacks in edgy causes the issue.