- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 633
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I got following warning during launch of the neovim:
[NvimTree] unknown option: 1
Any idea why thats happening?
Neovim version
NVIM v0.7.0
Operating system and version
ArchLinux fully upgraded
nvim-tree version
Latest
Minimal config
Default config from readme file + autocomand to auto close from [#1115](https://github.com/kyazdani42/nvim-tree.lua/discussions/1115)
Steps to reproduce
Happens on startup
Expected behavior
No warnings
Actual behavior
Warning about unknown option 1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
kyazdani42 commentedon Jul 7, 2022
I think there is something wrong about how you set the setup table.
Aren't you doing something like
setup( { { ... } })
instead ofsetup({ ... })
?mamaraddio commentedon Jul 7, 2022
This is the content of my nvim-tree config file:
And every time I open NeoVim, appers this:

Nvim-tree continue working as expected and the "auto_close" workaround works like a charm.
kyazdani42 commentedon Jul 7, 2022
sure, the vim.api.nvim_create_autocmd is not supposed to be passed in setup
kyazdani42 commentedon Jul 7, 2022
closing since this is an error with the config.
kyazdani42 commentedon Jul 7, 2022
PS:
mamaraddio commentedon Jul 7, 2022
Thanks, it works!