-
-
Notifications
You must be signed in to change notification settings - Fork 34
feat: use new neovim apis, add :healthcheck, fix sudo query_command
#35
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
Conversation
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.
…r various refactor
|
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. |
|
this still seems to broken on master for me on wsl |
e0e70e0 to
f343ea9
Compare
1ea1c17 to
ae05976
Compare
Apparently needs to be run inside :checkhealth to work before nvim 0.10 williamboman/nvim-lsp-installer#769
|
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. |
This reverts commit 543b409.
80e1bc7 to
8f33420
Compare
8f33420 to
16213ea
Compare
We're already relying on `sudo` through `$SUDO_USER` anyways, this is cleaner than using both `su` and `sudo`. To use `su`, we'd have to re-implement shell argument escaping and resolving the executable path (or inheriting parts of ENV manually) in Lua.
|
Managed to fix some more issues with the |
Uses
vim.uvovervim.loop,vim.systemovervim.fn.jobstart, adds a:checkhealthhook with a query_command benchmark, and fixes theSUDO_USERquery_command. Still preserves fallbacks for jobstart & vim.loop so it will work on older neovim versions.Also uses
vim.validateto 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.