* chore: add type annotations to (almost) all functions
* stylua
* Add classes for symlink nodes
* Replace deprecated `@vararg`
* Move node classes to `node` module
* Fix `Symlink*` classes
* add vim and libuv runtime for luals, qualify libuv types
* add scripts/luals-check, not quite ready for CI
* additional nil checks for git/init.lua and git/runner.lua
* additional nil checks for nvim-tree.lua
* wrap vim.cmd-as-a-function calls inside functions
* vim.tbl_filter predicate returns booleans
* Revert "add scripts/luals-check, not quite ready for CI"
This reverts commit c70229cad9.
* Add `MinimalNode` class in `marks` module
* Fix various LSP warnings
* stylua
* Fix `Explorer` class, update related annotations and add necessary checks
* Add missing annotations to `live-filter`
* Add temporary aliases for `uv.*` types
* Resolve remaining LSP warnings
* Revert changes not related to internal types
* Minor adjustments
* Update doc comments style
* Minor adjustments (pt. 2)
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
38 lines
875 B
Lua
38 lines
875 B
Lua
---@meta
|
|
|
|
-- TODO add "${3rd}/luv/library" to "workspace.library"
|
|
---@class uv.uv_req_t: table
|
|
---@class uv.uv_fs_t: uv.uv_req_t
|
|
|
|
---@class ParentNode
|
|
---@field name string
|
|
|
|
---@class BaseNode
|
|
---@field absolute_path string
|
|
---@field executable boolean
|
|
---@field fs_stat uv.uv_fs_t
|
|
---@field git_status GitStatus|nil
|
|
---@field hidden boolean
|
|
---@field name string
|
|
---@field parent DirNode
|
|
---@field type string
|
|
---@field watcher function|nil
|
|
|
|
---@class DirNode: BaseNode
|
|
---@field has_children boolean
|
|
---@field group_next Node|nil
|
|
---@field nodes Node[]
|
|
---@field open boolean
|
|
|
|
---@class FileNode: BaseNode
|
|
---@field extension string
|
|
|
|
---@class SymlinkDirNode: DirNode
|
|
---@field link_to string
|
|
|
|
---@class SymlinkFileNode: FileNode
|
|
---@field link_to string
|
|
|
|
---@alias SymlinkNode SymlinkDirNode|SymlinkFileNode
|
|
---@alias Node ParentNode|DirNode|FileNode|SymlinkNode|Explorer
|