nvim-tree.lua/lua/nvim-tree
Azad 13f967f8e7
chore: add type annotations and resolve LSP warnings (#2555)
* 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>
2023-12-09 11:34:35 +11:00
..
actions chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
explorer chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
git chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
iterators chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
marks chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
renderer fix(#2516): diagnostics icon highlight group matches the documentation: NvimTreeLspDiagnosticsInfo -> Information (#2518) 2023-11-19 15:31:52 +11:00
api.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
colors.lua feat(#2411): add renderer.highlight_bookmarks, renderer.icons.bookmarks_placement (#2412) 2023-09-24 15:07:02 +10:00
commands.lua refactor: api and command focus call tree.open(), soft deprecate tree.focus() 2023-11-27 14:24:55 +02:00
core.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
diagnostics.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
enum.lua feat(#1079): add renderer.highlight_clipboard default name, defaults to undercurls (#2410) 2023-09-17 16:08:04 +10:00
events.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
help.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
keymap.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
legacy.lua chore: stylua column width 120 -> 140 (#2448) 2023-10-08 11:40:58 +11:00
lib.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
live-filter.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
log.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
modified.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
node.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
notify.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
utils.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
view.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00
watcher.lua chore: add type annotations and resolve LSP warnings (#2555) 2023-12-09 11:34:35 +11:00