-
-
Notifications
You must be signed in to change notification settings - Fork 639
docs(#3088): add nvim-tree.api* function and class meta, generate help documentation, lazy load api #3244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
docs(#3088): add nvim-tree.api* function and class meta, generate help documentation, lazy load api #3244
Conversation
…tors to main help
…at and order nvim_tree.Config
…ries populate others placeholder
…_decorator.lua changes, retain api opts classes but make them exact
…gacy api to legacy.lua
… hydrated with their concrete function, wrap removal TODO
| end | ||
| end) | ||
|
|
||
| api.tree.change_root_to_node = wrap_node(wrap_explorer("change_dir_to_node")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change has paid off already @Uanela
No need to rewrite this for lazy loading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great
| # TODO #3241 ensure that decorator is checked - all meta should be valid | ||
| luacheck: | ||
| luacheck --codes --quiet lua --exclude-files "**/_meta/api_decorator.lua" | ||
| luacheck --codes --quiet lua --exclude-files "**/_meta/**" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
luacheck just can't cope with meta. luals is fine so just skip it.
fixes #3088
fixes #2668
addresses #3231 step 2
follows #3235
No AI tooling was used.
Scope
lua/nvim-tree/_meta/api/andlua/nvim-tree/_meta/api.luaforrequire("nvim-tree.api")require("nvim-tree.api")callpre.lua(fast)wrap) ORapi.map.default_on_attachpost.lua(slow) to completes all remaining implementationsmap_api*nvim-tree-commands*help#3231 step 2 was added to scope as the api hydration was changed anyway and needed to be tested.
Startup timing:
Nothing required:
api
setup
Manual testing: