@@ -2,13 +2,9 @@ local lib = require "nvim-tree.lib"
2
2
local log = require " nvim-tree.log"
3
3
local appearance = require " nvim-tree.appearance"
4
4
local view = require " nvim-tree.view"
5
- local commands = require " nvim-tree.commands"
6
5
local utils = require " nvim-tree.utils"
7
6
local actions = require " nvim-tree.actions"
8
- local legacy = require " nvim-tree.legacy"
9
7
local core = require " nvim-tree.core"
10
- local git = require " nvim-tree.git"
11
- local buffers = require " nvim-tree.buffers"
12
8
local notify = require " nvim-tree.notify"
13
9
14
10
local _config = {}
@@ -358,7 +354,7 @@ local function setup_autocommands(opts)
358
354
create_nvim_tree_autocmd ({ " BufModifiedSet" , " BufWritePost" }, {
359
355
callback = function ()
360
356
utils .debounce (" Buf:modified" , opts .view .debounce_delay , function ()
361
- buffers .reload_modified ()
357
+ require ( " nvim-tree. buffers" ) .reload_modified ()
362
358
local explorer = core .get_explorer ()
363
359
if explorer then
364
360
explorer :reload_explorer ()
@@ -808,7 +804,7 @@ function M.purge_all_state()
808
804
view .close_all_tabs ()
809
805
view .abandon_all_windows ()
810
806
if core .get_explorer () ~= nil then
811
- git .purge_state ()
807
+ require ( " nvim-tree. git" ) .purge_state ()
812
808
core .reset_explorer ()
813
809
end
814
810
end
@@ -824,7 +820,7 @@ function M.setup(conf)
824
820
825
821
localise_default_opts ()
826
822
827
- legacy .migrate_legacy_options (conf or {})
823
+ require ( " nvim-tree. legacy" ) .migrate_legacy_options (conf or {})
828
824
829
825
validate_options (conf )
830
826
@@ -870,7 +866,7 @@ function M.setup(conf)
870
866
871
867
if vim .g .NvimTreeSetup ~= 1 then
872
868
-- first call to setup
873
- commands .setup ()
869
+ require ( " nvim-tree. commands" ) .setup ()
874
870
else
875
871
-- subsequent calls to setup
876
872
M .purge_all_state ()
0 commit comments