* add classic, migrating nodes classes
* add mixins to classic
* typechecked optargs constructors for nodes
* typechecked optargs constructors for watcher and event
* luacheck
* typechecked optargs constructors for GitRunner
* typechecked optargs constructors for Sorter
* typechecked optargs constructors for decorators, WIP
* typechecked optargs constructors for decorators, WIP
* typechecked optargs constructors for decorators
* remove class
* replace enums with named maps
* Renderer and Builder use classic, tidy opts
* LiveFilter uses classic, tidy opts
* Filter uses classic, tidy opts
* add FilterTypes named map
* move toggles into filters
* Marks uses classic, tidy opts
* Sorter uses classic, tidy opts
* Clipboard uses classic, tidy opts
* use supers for node methods
* HighlightDisplay uses classic
* protected :new
* Watcher tidy
* Revert "use supers for node methods"
This reverts commit 9fc7a866ec.
* Watcher tidy
* format
* format
* Filters private methods
* format
* Sorter type safety
* Sorter type safety
* Sorter type safety
* Sorter type safety
* Sorter type safety
* Sorter type safety
* tidy Runner
* tidy hi-test name
20 lines
464 B
Lua
20 lines
464 B
Lua
local Class = require("nvim-tree.classic")
|
|
|
|
---@class (exact) LinkNode: Class
|
|
---@field link_to string
|
|
---@field protected fs_stat_target uv.fs_stat.result
|
|
local LinkNode = Class:extend()
|
|
|
|
---@class (exact) LinkNodeArgs: NodeArgs
|
|
---@field link_to string
|
|
---@field fs_stat_target uv.fs_stat.result
|
|
|
|
---@protected
|
|
---@param args LinkNodeArgs
|
|
function LinkNode:new(args)
|
|
self.link_to = args.link_to
|
|
self.fs_stat_target = args.fs_stat_target
|
|
end
|
|
|
|
return LinkNode
|