Skip to content

add luv library annotations #1760

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

Merged
merged 1 commit into from
Dec 14, 2022
Merged

add luv library annotations #1760

merged 1 commit into from
Dec 14, 2022

Conversation

flrgh
Copy link
Contributor

@flrgh flrgh commented Dec 13, 2022

This adds annotations for the luv library.

Most everything here was taken from the luv API docs and then annotated with lua-language-server types.

Some of the docs are not clear, so I'm certain there are little mistakes here and there, given that it's such a big API surface.

Most of the docs refer to uv rather than luv, so all types are namespaced under uv.*, but I'm not opposed to changing it if need be.


For neovim users, once including this library you can annotate vim.loop to use it :)

---@type uv
local uv = vim.loop

@sumneko sumneko merged commit e3aedae into LuaLS:master Dec 14, 2022
@flrgh flrgh deleted the feat/luv-annotations branch December 14, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants