Skip to content

Commit

Permalink
fix(health): update the deprecated function (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoka7 committed May 10, 2023
1 parent af8f26b commit 12d3b11
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 12d3b11

Please sign in to comment.