File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- --- TODO #2826 wrap all the view methods in explorer
1+ -- TODO #2826 wrap all the view methods in explorer
22
33local core = require (" nvim-tree.core" )
44local view = require (" nvim-tree.view" )
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ local DEFAULT_MIN_WIDTH = 30
1616local DEFAULT_MAX_WIDTH = - 1
1717local DEFAULT_PADDING = 1
1818
19- -- TODO attempt to type the tables, at least the options ones
19+ -- TODO #2826 attempt to type the tables, at least the options ones
2020
2121--- @class (exact ) View : Class
2222--- @field live_filter table
2323--- @field side string
2424--- @field float table
25- --- TODO private below here
25+ --- TODO #2826 private below here
2626--- @field explorer Explorer
2727--- @field adaptive_size boolean
2828--- @field centralize_selection boolean
@@ -42,6 +42,7 @@ local View = Class:extend()
4242--- @class View
4343--- @overload fun ( args : ViewArgs ): View
4444
45+ -- TODO #2826 exact
4546--- @class (exact ) ViewArgs
4647--- @field explorer Explorer
4748
@@ -114,7 +115,7 @@ local tabinitial = {
114115 winnr = nil ,
115116}
116117
117- -- TODO member
118+ -- TODO #2826 member
118119local BUFNR_PER_TAB = {}
119120
120121--- @type { name : string , value : any } []
@@ -683,11 +684,8 @@ function View:configure_width(width)
683684end
684685
685686function M .setup (opts )
686- M .View = View ({
687- explorer = {
688- opts = opts
689- }
690- })
687+ -- TODO #2826 move this to explorer constructor
688+ M .View = View ({ explorer = { opts = opts } }) --- @diagnostic disable-line : missing-fields
691689end
692690
693691return M
You can’t perform that action at this time.
0 commit comments