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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(health): update the deprecated function #453

Merged
merged 1 commit into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/which-key/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local Keys = require("which-key.keys")
local M = {}

local start = vim.health.start or vim.health.report_start
-- local ok = vim.health.ok or vim.health.report_ok
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
local info = vim.health.info or vim.health.report_info
Expand Down Expand Up @@ -31,7 +31,7 @@ function M.check()
)
end
if next(Keys.duplicates) == nil then
vim.fn["health#report_ok"]("No conflicting keymaps found")
ok("No conflicting keymaps found")
return
end
for _, dup in pairs(Keys.duplicates) do
Expand Down