-
-
Notifications
You must be signed in to change notification settings - Fork 619
packer.nvim: Error running config for nvim-tree.lua: attempt to call a nil value #1017
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
Comments
Nvim-tree config require'nvim-tree'.setup {
disable_netrw = true,
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
auto_close = true,
open_on_tab = false,
update_to_buf_dir = {
enable = true,
auto_open = true,
},
hijack_cursor = false,
update_cwd = false,
diagnostics = {
enable = false,
icons = {
hint = "",
info = "",
warning = "",
error = "",
}
},
update_focused_file = {
enable = false,
update_cwd = false,
ignore_list = {}
},
system_open = {
cmd = nil,
args = {}
},
view = {
width = 30,
height = 30,
side = 'left',
auto_resize = false,
mappings = {
custom_only = false,
list = {}
}
}
}
vim.cmd("let g:nvim_tree_quit_on_open = 1") Inside Packer config use {
'kyazdani42/nvim-tree.lua',
requires = 'kyazdani42/nvim-web-devicons',
config = function() require'nvim-tree'.setup {} end
} |
hi, did you run |
Sorry, I ran only vim.cmd("let g:nvim_tree_quit_on_open = 1") Did some changes have been made for this? I want nvim-tree to close as I open a file. |
check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS
Linux arch 5.16.10-arch1-1 #1 SMP PREEMPT Wed, 16 Feb 2022 19:35:18 +0000 x86_64 GNU/Linux
Neovim version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Nvim-tree version
master, 95df001
Describe the bug

Not Sure what it is but getting this error when I open nvim
Dont have any clue whats the mistake in the config
To Reproduce
I have stock nvim config installed using packer.nvim
The text was updated successfully, but these errors were encountered: