Skip to content

[NvimTree] nim-tree.lua setup called multiple times #1313

@icholy

Description

@icholy

Description

I started getting the following error when running :PackerCompile

[NvimTree] nvim-tree.lua setup called multiple times

Neovim version

NVIM v0.8.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-Ed2VZg/neovim-0.7.0~ubuntu1+git202206012118-57a296d89-dd05b3569=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim-Ed2VZg/neovim-0.7.0~ubuntu1+git202206012118-57a296d89-dd05b3569/build/config -I/build/neovim-Ed2VZg/neovim-0.7.0~ubuntu1+git202206012118-57a296d89-dd05b3569/src -I/build/neovim-Ed2VZg/neovim-0.7.0~ubuntu1+git202206012118-57a296d89-dd05b3569/.deps/usr/include -I/usr/include -I/build/neovim-Ed2VZg/neovim-0.7.0~ubuntu1+git202206012118-57a296d89-dd05b3569/build/src/nvim/auto -I/build/neovim-Ed2VZg/neovim-0.7.0~ubuntu1+git202206012118-57a296d89-dd05b3569/build/include
Compiled by buildd@lcy02-amd64-014

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Operating system and version

5.13.0-44-generic #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

nvim-tree version

a0f7059

Minimal config

vim.cmd("packadd packer.nvim")

require("packer").startup(function(use)
  use({
      "kyazdani42/nvim-tree.lua",
      config = function()
        require("nvim-tree").setup()
      end
  })
end)

Steps to reproduce

:PackerCompile

Expected behavior

No output

Actual behavior

image

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