Skip to content

Commit

Permalink
ref(health): replace deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arsham committed Jun 4, 2023
1 parent 00cba05 commit f948f48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/indent-tools/health.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
local M = {}
local health = vim.health or require("health")

M.check = function()
health.report_start("Indent Tool Health Check")
vim.health.start("Indent Tool Health Check")
if not pcall(require, "arshlib") then
health.report_error("arshlib.nvim was not found", {
vim.health.error("arshlib.nvim was not found", {
'Please install "arsham/arshlib.nvim"',
})
else
health.report_ok("arshlib.nvim is installed")
vim.health.ok("arshlib.nvim is installed")
end
end

Expand Down

0 comments on commit f948f48

Please sign in to comment.