@@ -14,7 +14,6 @@ local Class = require("nvim-tree.classic")
1414--- @field private explorer Explorer
1515--- @field private adaptive_size boolean
1616--- @field private winopts table
17- --- @field private height integer
1817--- @field private initial_width integer
1918--- @field private width (fun (): integer )| integer | string
2019--- @field private max_width integer
@@ -35,7 +34,6 @@ function View:new(args)
3534
3635 self .explorer = args .explorer
3736 self .adaptive_size = false
38- self .height = self .explorer .opts .view .height
3937 self .side = (self .explorer .opts .view .side == " right" ) and " right" or " left"
4038 self .live_filter = { prev_focused_node = nil , }
4139 self .bufnr_by_tab = {}
@@ -419,7 +417,6 @@ function View:resize(size)
419417
420418 if size then
421419 self .width = size
422- self .height = size
423420 end
424421
425422 if not self :is_visible () then
@@ -770,6 +767,7 @@ function View:is_width_determined()
770767 return type (self .width ) ~= " function"
771768end
772769
770+ -- These are needed as they are populated only by the user, not configuration
773771local DEFAULT_MIN_WIDTH = 30
774772local DEFAULT_MAX_WIDTH = - 1
775773local DEFAULT_PADDING = 1
0 commit comments