Skip to content

nvim-tree integration: winid might be nil when floating view is enabled #3016

@joseffilzmaier

Description

@joseffilzmaier

Description

I am using nvim-tree and fidget.nvim and received error messages once i enabled view.float.enable = true inside of my nvim-tree plugin.

The error occurs every time i start nvim

Error Message:

[NvimTree] Handler for event TreeOpen errored. "...im/lazy/fidget.nvim/lua/fidget/integration/nvim-tree.lua:39: Invalid 'window': Expected Lua number"

Neovim version

NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1731601260
Run "nvim -V1 -v" for more info

Operating system and version

Linux 6.12.1-arch1-1 #1 SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

Windows variant

No response

nvim-tree version

99db23d

Clean room replication

for lsp:
{
    'neovim/nvim-lspconfig',
    dependencies = {
      'williamboman/mason.nvim',
      'williamboman/mason-lspconfig.nvim',
      'WhoIsSethDaniel/mason-tool-installer.nvim',
      { 'j-hui/fidget.nvim', opts = {} },
    },
  config = function()
... some keymaps
end
}
For

Steps to reproduce

Open any file

Expected behavior

No error message is shown

Actual behavior

Error Message:

[NvimTree] Handler for event TreeOpen errored. "...im/lazy/fidget.nvim/lua/fidget/integration/nvim-tree.lua:39: Invalid 'window': Expected Lua number"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions