refactor(#2826): View is an Explorer member

This commit is contained in:
Alexander Courtis
2025-04-21 12:02:19 +10:00
parent 0eb21f66f7
commit 44cb3d2f0a
21 changed files with 170 additions and 114 deletions

View File

@@ -1,5 +1,5 @@
local api = require("nvim-tree.api")
local view = require("nvim-tree.view")
local core = require("nvim-tree.core")
local M = {}
@@ -111,7 +111,10 @@ local CMDS = {
bar = true,
},
command = function(c)
view.View:resize(c.args)
local explorer = core.get_explorer()
if explorer then
explorer.view:resize(c.args)
end
end,
},
{