Skip to content
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

feat: use new neovim apis, add :healthcheck, fix sudo query_command #35

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nekowinston
Copy link
Collaborator

@nekowinston nekowinston commented Oct 10, 2024

Uses vim.uv over vim.loop, vim.system over vim.fn.jobstart, adds a :checkhealth hook with a query_command benchmark, and fixes the SUDO_USER query_command. Still preserves fallbacks for jobstart & vim.loop so it will work on older neovim versions.

Also uses vim.validate to validate the plugin options and refactors quite a bit; moving the query/interval logic into its own lua module.

It's still a bit of a mess right now but I figured I'd open the PR sooner rather than later.

Fixes #33.
Fixes #34.

Uses `vim.uv` over `vim.loop`, `vim.system` over `vim.fn.jobstart`, adds
a `:checkhealth` hook with a query_command benchmark, and fixes the
`SUDO_USER` query_command.
@nekowinston
Copy link
Collaborator Author

I still need to check if this works on neovim 0.8 and neovim 0.9, but support for 0.10 should work fine already.

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.

WSL implementation depends on reg.exe being on $PATH Use vim.uv instead of vim.loop if available
1 participant