Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with nvim-tree float window #57

Open
LinoWhy opened this issue Oct 19, 2023 · 1 comment
Open

Conflict with nvim-tree float window #57

LinoWhy opened this issue Oct 19, 2023 · 1 comment

Comments

@LinoWhy
Copy link

LinoWhy commented Oct 19, 2023

Opening nvim-tree in a float window then quit, leads to following error:

E5108: Error executing lua: ...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:210: WinLeave Autocommands fo
r "*": Vim(append):Error executing lua callback: ...are/nvim/lazy/nvim-lightbulb/lua/nvim-lightbulb/init.lua:202: sco
ped variable: Invalid buffer id: 18
stack traceback:
[C]: in function '__index'
...are/nvim/lazy/nvim-lightbulb/lua/nvim-lightbulb/init.lua:202: in function 'clear_lightbulb'
...e/nvim/lazy/nvim-lightbulb/lua/nvim-lightbulb/config.lua:241: in function <...e/nvim/lazy/nvim-lightbulb/l
ua/nvim-lightbulb/config.lua:240>
[C]: in function 'nvim_set_current_win'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:210: in function 'close'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:222: in function 'close_this_tab_only'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:235: in function <...cal/share/nvim/lazy/nvim-tre
e.lua/lua/nvim-tree/view.lua:231>
stack traceback:
[C]: in function 'nvim_set_current_win'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:210: in function 'close'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:222: in function 'close_this_tab_only'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:235: in function <...cal/share/nvim/lazy/nvim-tre
e.lua/lua/nvim-tree/view.lua:231>

It seems that WinLeave autocmd of nvim-tree and nvim-lightbulb have conflicts.
Beside, can we use the ignore option in autocmd pattern?

    ignore = {
        -- Filetypes to ignore.
        -- Example: {"neo-tree", "lua"}
        ft = {},
    }, 
@mushfiqRabbi
Copy link

mushfiqRabbi commented Nov 30, 2023

Any update on this? I am facing a similar issue.
Update: Setting "hide_in_unfocused_buffer = false", fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants