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

unknown options warning on startup #1334

Closed
farukara opened this issue Jun 10, 2022 · 10 comments
Closed

unknown options warning on startup #1334

farukara opened this issue Jun 10, 2022 · 10 comments
Labels
awaiting feedback documentation Improvements or additions to documentation

Comments

@farukara
Copy link

farukara commented Jun 10, 2022

Description

I got following warning during launch of the neovim:

[NvimTree] unknown option: view.centralize_selection | unknown 
option: filesystem_watchers | unknown option: renderer.full_nam
e | unknown option: renderer.indent_markers.icons.item | unknow
n option: log.types.watcher

options were more than that but after uninstall/install cycle only these were left.
Any idea why thats happening?

Neovim version

neovim 0.7.0

Operating system and version

macos monterey 12.3.1

nvim-tree version

latest

Minimal config

default config from readme file with no change

Steps to reproduce

happens on startup. No negative effect obseved

Expected behavior

No response

Actual behavior

No response

@farukara farukara added the bug Something isn't working label Jun 10, 2022
@alex-courtis
Copy link
Member

alex-courtis commented Jun 11, 2022

It looks like you might be using the nightly tag. A large overhaul of options has happened since then. That tag has recently been updated.

Please use the default options from :help OR use the latest version.

#1327 is currently underway which cleans up the README, which will prevent future issues like this.

@alex-courtis alex-courtis added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jun 11, 2022
This was referenced Jun 11, 2022
@farukara
Copy link
Author

farukara commented Jun 11, 2022

Thanks yeah that solved it. One more question, I got that :
nvim-tree.lua setup called multiple times
config file only has one setup call. Where would be the other one? Could not find it.

@alex-courtis
Copy link
Member

alex-courtis commented Jun 12, 2022

config file only has one setup call

Does packer config call setup? Are you reloading your vim config?

An option to suppress that warning is incoming, however it is best to fix this problem at the root.

@vanppo
Copy link

vanppo commented Jun 13, 2022

How about maintaining a blacklist other than whitelist. Here is my configuration, and initialize will be the so-called unknown option.

local M = {
  -- plugin settings
}

function M:initialize()
  require("nvim-tree").setup(self)
end

@alex-courtis
Copy link
Member

alex-courtis commented Jun 14, 2022

How about maintaining a blacklist other than whitelist. Here is my configuration, and initialize will be the so-called unknown option.

I see what you mean with your example, however I'm not quite sure what you are proposing with the blacklist.

How do we generate this blacklist? We're trying to detect situations like diagnostic.enable instead of diagnostics.enable.

@weeebdev
Copy link

weeebdev commented Jul 17, 2022

Same here.
image
I am a newbie in nvim. What do I do?

@kyazdani42
Copy link
Member

kyazdani42 commented Jul 17, 2022

auto resize needs to be moved to actions.open_file.resize_window and follow_update_path needs to be moved to update_focused_file

@kyazdani42
Copy link
Member

kyazdani42 commented Jul 17, 2022

see :help nvim-tree.OPTION_NAME

@alex-courtis
Copy link
Member

alex-courtis commented Jul 18, 2022

Added :help hint:
[NvimTree] unknown option: live_filter.always_show_folder | unknown option: trash.require_confir | see :help nvim-tree-setup for available configuration options

@alex-courtis
Copy link
Member

alex-courtis commented Jul 18, 2022

Closing as there is nothing further to do here; blacklist is not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants