From d837134ddf2da1ac9f8b0335913a56c3ea2e0e74 Mon Sep 17 00:00:00 2001 From: paul-talma <109061871+paul-talma@users.noreply.github.com> Date: Tue, 1 Apr 2025 08:57:14 -0400 Subject: [PATCH] fix vim.health --- lua/jupytext/health.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/jupytext/health.lua b/lua/jupytext/health.lua index 7a8f45d..e7c7436 100644 --- a/lua/jupytext/health.lua +++ b/lua/jupytext/health.lua @@ -1,13 +1,14 @@ local M = {} M.check = function() - vim.health.report_start "jupytext.nvim" + local health = vim.health + health.start "jupytext.nvim" vim.fn.system "jupytext --version" if vim.v.shell_error == 0 then - vim.health.report_ok "Jupytext is available" + health.ok "Jupytext is available" else - vim.health.report_error("Jupytext is not available", "Install jupytext via `pip install jupytext`") + health.error("Jupytext is not available", "Install jupytext via `pip install jupytext`") end end