mirror of
https://github.com/nvim-tree/nvim-tree.lua.git
synced 2026-07-28 15:59:44 +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)
|
setup_autocommands(opts)
|
||||||
|
|
||||||
if vim.g.NvimTreeSetup ~= 1 then
|
if vim.g.NvimTreeSetup == 1 then
|
||||||
-- first call to setup
|
|
||||||
require("nvim-tree.commands").setup()
|
|
||||||
else
|
|
||||||
-- subsequent calls to setup
|
-- subsequent calls to setup
|
||||||
M.purge_all_state()
|
M.purge_all_state()
|
||||||
end
|
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