From 5be254c5d11bab7dc5a45eca03975e05ca673436 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Thu, 4 Jan 2024 15:22:52 +0100 Subject: [PATCH] Use non-deprecated checkhealth syntax --- autoload/health/dap-go.vim | 3 --- lua/dap-go/health.lua | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 autoload/health/dap-go.vim diff --git a/autoload/health/dap-go.vim b/autoload/health/dap-go.vim deleted file mode 100644 index 9a66e08..0000000 --- a/autoload/health/dap-go.vim +++ /dev/null @@ -1,3 +0,0 @@ -function! health#dap-go#check() - lua require 'dap-go.health'.check() -endfunction diff --git a/lua/dap-go/health.lua b/lua/dap-go/health.lua index 3e8b81c..5623149 100644 --- a/lua/dap-go/health.lua +++ b/lua/dap-go/health.lua @@ -1,10 +1,10 @@ local fn = vim.fn local is_win = vim.api.nvim_call_function('has', { 'win32' }) == 1 -local health_start = vim.fn['health#report_start'] -local health_ok = vim.fn['health#report_ok'] -local health_warn = vim.fn['health#report_warn'] -local health_error = vim.fn['health#report_error'] +local health_start = vim.health.start +local health_ok = vim.health.ok +local health_warn = vim.health.warn +local health_error = vim.health.error local dependencies = { {