Skip to content

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.

@sedlund
Copy link

sedlund commented Mar 2, 2025

this still seems to broken on master for me on wsl

@nekowinston nekowinston force-pushed the feat/use-new-neovim-apis-add-healthcheck branch from e0e70e0 to f343ea9 Compare March 8, 2025 03:11
@nekowinston nekowinston force-pushed the feat/use-new-neovim-apis-add-healthcheck branch from 1ea1c17 to ae05976 Compare March 8, 2025 10:13
@nekowinston
Copy link
Collaborator Author

I just need a Windows/WSL system to test this on, but should be able to do that this weekend. Aiming to merge it after that.

Sorry for letting this PR sit for a while.

@nekowinston nekowinston marked this pull request as ready for review March 8, 2025 11:17
@nekowinston nekowinston force-pushed the feat/use-new-neovim-apis-add-healthcheck branch from 80e1bc7 to 8f33420 Compare March 8, 2025 16:56
@nekowinston nekowinston force-pushed the feat/use-new-neovim-apis-add-healthcheck branch from 8f33420 to 16213ea Compare March 8, 2025 16:58
@nekowinston
Copy link
Collaborator Author

Managed to fix some more issues with the sudo query function and the WSL implementation (thanks to @S1deprojects for helping me troubleshoot the code on their system 🙂).

@nekowinston nekowinston merged commit 18c9240 into master Mar 9, 2025
16 checks passed
@nekowinston nekowinston deleted the feat/use-new-neovim-apis-add-healthcheck branch March 9, 2025 13:44
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

3 participants