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

chore: update healthcheck #438

Merged
merged 2 commits into from
Apr 22, 2023
Merged

chore: update healthcheck #438

merged 2 commits into from
Apr 22, 2023

Conversation

snelling-a
Copy link
Contributor

@snelling-a snelling-a commented Apr 21, 2023

health api was changed in #22927

- *health#report_error* *vim.health.report_error()*	Use |vim.health.error()| instead.
- *health#report_info* *vim.health.report_info()*	Use |vim.health.info()| instead.
- *health#report_ok* *vim.health.report_ok()*		Use |vim.health.ok()| instead.
- *health#report_start* *vim.health.report_start()*	Use |vim.health.start()| instead.
- *health#report_warn* *vim.health.report_warn()*	Use |vim.health.warn()| instead.

- *health#report_error* *vim.health.report_error()*	Use |vim.health.error()| instead.
- *health#report_info* *vim.health.report_info()*	Use |vim.health.info()| instead.
- *health#report_ok* *vim.health.report_ok()*		Use |vim.health.ok()| instead.
- *health#report_start* *vim.health.report_start()*	Use |vim.health.start()| instead.
- *health#report_warn* *vim.health.report_warn()*	Use |vim.health.warn()| instead.
Copy link
Owner

@folke folke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break noice for older Neovim versions.
Can you update the code so it uses the below?

local start = vim.health.start or vim.health.report_start
local ok = vim.health.ok or vim.health.report_ok
local warn = vim.health.warn or vim.health.report_warn
local error = vim.health.error or vim.health.report_error

@snelling-a
Copy link
Contributor Author

This will break noice for older Neovim versions.

🫡Fair point. I had thought of that, but since using the nightly build is highly recommended, I thought this would be pretty safe.

@snelling-a snelling-a requested a review from folke April 22, 2023 17:38
@folke folke merged commit 0f12ed3 into folke:main Apr 22, 2023
@folke
Copy link
Owner

folke commented Apr 22, 2023

thanks!

willothy pushed a commit to willothy/noice.nvim that referenced this pull request Aug 19, 2023
* chore: update healthcheck

- *health#report_error* *vim.health.report_error()*	Use |vim.health.error()| instead.
- *health#report_info* *vim.health.report_info()*	Use |vim.health.info()| instead.
- *health#report_ok* *vim.health.report_ok()*		Use |vim.health.ok()| instead.
- *health#report_start* *vim.health.report_start()*	Use |vim.health.start()| instead.
- *health#report_warn* *vim.health.report_warn()*	Use |vim.health.warn()| instead.

* Allow for use of legacy health checks
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.

2 participants