-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
refactor!: remove nvim
and provider
module for checkhealth
#28839
Conversation
Future improvements:
|
b585616
to
daab5c5
Compare
b92b4d3
to
5d89db8
Compare
The namespacing for healthchecks for neovim modules is inconsistent and confusing. The completion for `:checkhealth` with `--clean` gives ``` nvim provider.clipboard provider.node provider.perl provider.python provider.ruby vim.lsp vim.treesitter ``` There are now three top-level module names for nvim: `nvim`, `provider` and `vim` with no signs of stopping. The `nvim` name is especially confusing as it does not contain all neovim checkhealths, which makes it almost a decoy healthcheck. The confusion only worsens if you add plugins to the mix: ``` lazy mason nvim nvim-treesitter provider.clipboard provider.node provider.perl provider.python provider.ruby telescope vim.lsp vim.treesitter ``` Another problem with the current approach is that it's not easy to run nvim-only healthchecks since they don't share the same namespace. The current approach would be to run `:che nvim vim.* provider.*` and would also require the user to know these are the neovim modules. Instead, use this alternative structure: ``` vim.health vim.lsp vim.provider.clipboard vim.provider.node vim.provider.perl vim.provider.python vim.provider.ruby vim.treesitter ``` and ``` lazy mason nvim-treesitter telescope vim.health vim.lsp vim.provider.clipboard vim.provider.node vim.provider.perl vim.provider.python vim.provider.ruby vim.treesitter ``` Now, the entries are properly sorted and running nvim-only healthchecks requires running only `:che vim.*`.
5d89db8
to
4a51eea
Compare
Looks great, and I like the change. But shouldn't it be mentioned in news.txt? |
Tbh does anyone care about this? |
"nvim" was for non-provider checks, especially configuration-related checks. Is |
I know, but neovim is the only thing that has multiple top-level checkhealth modules. Remember, there was no real way to run neovim only healthchecks before.
Ye, because |
As long as there's a way to run non-provider Nvim checks, I think it's fine. Not worried about the name too much, in this case. |
The namespacing for healthchecks for neovim modules is inconsistent and
confusing. The completion for
:checkhealth
with--clean
givesThere are now three top-level module names for nvim:
nvim
,provider
and
vim
with no signs of stopping. Thenvim
name is especiallyconfusing as it does not contain all neovim checkhealths, which makes it
almost a decoy healthcheck.
The confusion only worsens if you add plugins to the mix:
Another problem with the current approach is that it's not easy to run
nvim-only healthchecks since they don't share the same namespace. The
current approach would be to run
:che nvim vim.* provider.*
and wouldalso require the user to know these are the neovim modules.
Instead, use this alternative structure:
and
Now, the entries are properly sorted and running nvim-only healthchecks
requires running only
:che vim.*
.