mirror of
https://github.com/nvim-tree/nvim-tree.lua.git
synced 2026-07-28 07:49:46 +05:30
feat: load command definitions at nvim startup (#3211)
feat: load command definitions in `plugin` directory
This commit is contained in:
@@ -759,10 +759,7 @@ function M.setup(conf)
|
||||
|
||||
setup_autocommands(opts)
|
||||
|
||||
if vim.g.NvimTreeSetup ~= 1 then
|
||||
-- first call to setup
|
||||
require("nvim-tree.commands").setup()
|
||||
else
|
||||
if vim.g.NvimTreeSetup == 1 then
|
||||
-- subsequent calls to setup
|
||||
M.purge_all_state()
|
||||
end
|
||||
|
||||
1
plugin/nvim-tree.lua
Normal file
1
plugin/nvim-tree.lua
Normal file
@@ -0,0 +1 @@
|
||||
require("nvim-tree.commands").setup()
|
||||
Reference in New Issue
Block a user