Nvim-tree error

I posted this about a month ago but haven’t had any replies. Trying again. The same setup on a different machine with a different OS does not have the problem.
Recently, I’ve started getting this error when I start neovim:

Failed to run `config` for nvim-tree.lua
                                                                                                                                           
...nvim/lazy/nvim-tree.lua/lua/nvim-tree/node/directory.lua:14: attempt to index local 'Node' (a boolean value)                            
                                                                                                                                           
# stacktrace:                                                                                                                              
  - ~/.config/nvim/init.lua:48

This is my plugins/nvim-tree.lua file (there are some key mappings not shown)

 local opts = {
    filters = {
        dotfiles = false,
    },
}

return {
    "nvim-tree/nvim-tree.lua",
    lazy = false,
    opts = opts,
}

Has an update broken my configuration or maybe it was always wrong and an update has highlighted it?

You may have more luck over at the nvim-tree issue tracker: Issues · nvim-tree/nvim-tree.lua · GitHub

Otherwise, if you don’t get replies here, try the github discussions: neovim/neovim · Discussions · GitHub

I’m afraid I don’t use that plugin so I can’t help any further.

I did find a solution there. Here’s the link in case anyone has a similar problem in the future.https://github.com/nvim-tree/nvim-tree.lua/discussions/3023

1 Like