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

@@ -10,8 +10,6 @@ local Class = require("nvim-tree.classic")
---@field resize boolean|nil default true
---@field winid number|nil 0 or nil for current
local M = {}
local DEFAULT_MIN_WIDTH = 30
local DEFAULT_MAX_WIDTH = -1
local DEFAULT_PADDING = 1
@@ -671,9 +669,4 @@ function View:configure_width(width)
end
end
function M.setup(opts)
-- TODO #2826 move this to explorer constructor
M.View = View({ explorer = { opts = opts } }) ---@diagnostic disable-line: missing-fields
end
return M
return View