Installation - nvim-tree/nvim-tree.lua GitHub Wiki
Plugins
Required
nvim-tree/nvim-tree.lua
Recommended
nvim-tree/nvim-web-devicons
file icons
Optional
Neovim Plugin Manager
Please add your preferred plugin manager.
packer
use {
'nvim-tree/nvim-tree.lua',
requires = {
'nvim-tree/nvim-web-devicons', -- optional
},
}
vim-plug
Plug 'nvim-tree/nvim-web-devicons' " optional
Plug 'nvim-tree/nvim-tree.lua'
lazy
Importing file below or directory it is contained on lazy setup.
return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup {}
end,
}
Operating System Package
Ensure that your neovim plugin manager is not managing these plugins.
Arch Linux
- neovim-tree-lua-git
- neovim-web-devicons-git (optional)
Lazy Loading
Lazy loading is not recommended.
nvim-tree setup
is very inexpensive, doing little more than validating and setting configuration. There's no performance benefit for lazy loading.
Lazy loading can be problematic due to the somewhat nondeterministic startup order of plugins, session managers, netrw, "VimEnter"
event etc.
Older neovim Versions
If you cannot use the required version of nvim-tree you may use an older version via tag:
compat-nvim-0.8
compat-nvim-0.7
compat-nvim-0.6
Please note that these compatibility versions are not maintained or updated.