You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation: API luals Annotations And Help #3088
api.lua exposes implementation details and does not contain all parameter and return types, notably nvim_tree.api.Node, which is currently defined in _meta/api.lua
Refactor api.lua to be an empty-function interface similar to /usr/share/nvim/runtime/lua/vim/lsp/diagnostic.lua and /usr/share/nvim/runtime/lua/vim/lsp/_meta/protocol.lua. /usr/share/nvim/runtime/lua/vim/_meta/api.lua is desirable, however that assumes that vim.api exists as a global i.e. not required.
See Api.decorator.UserDecorator for desired API shape.
A mechanism to hydrate the api with implementations must be built, so that the user may require it. There doesn't appear to be good prior art in other plugins; they link to implementations or stubs that confuse LSP.
Activity
alex-courtis commentedon Mar 29, 2025
Classes should also be exposed e.g.
nvim_tree.api.DirectoryNodeso that users may test type. See #3090 (reply in thread)[-]Annotated API _meta[/-][+]Documentation: API luals Annotations[/+]alex-courtis commentedon Jan 15, 2026
Follows #2934
[-]Documentation: API luals Annotations[/-][+]Documentation: API luals Annotations And Help[/+]docs(#3088): plumb in lua module and function naming
docs(#3088): extract api/tree.lua
docs(#3088): extract api/tree.lua
docs(#3088): extract api/tree.lua
docs(#3088): extract api/tree.lua
docs(#3088): update api.tree references, remove old doc
docs(#3088): extract api/config/mappings.lua
docs(#3088): api.config.mappings -> api.map
docs(#3088): extract api/filter.lua
64 remaining items
docs(#3088): tidy contrib
docs(#3088): clarify backwards compatibility
docs(#3088): clarify help generation in contributing
docs(#3088): contributing index
docs(#3088): help-update.sh -> help-defaults.sh now using a /tmp file…
docs(#3088): help-update.sh -> help-defaults.sh now using a /tmp file…
docs(#3088): CI runs make lintdoc to avoid muddying help-check with u…
docs(#3088): unify help and readme, clarify some wording
docs(#3088): test a readme toc
docs(#3088): test a readme toc
docs(#3088): unify help generation and lint into vimdoc.sh, generatio…
docs(#3088): add nvim-tree.api* function and class meta, generate hel…
docs(#3241): add api.Decorator and Class meta with generated help, ha…