From 35135921ee504a4143b92b9e5a1252dda03b9a07 Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 21 Mar 2023 14:03:58 +1100 Subject: [PATCH] Dap-warning if virtual text not found --- lua/go/dap.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/go/dap.lua b/lua/go/dap.lua index f2f85ca..a599464 100644 --- a/lua/go/dap.lua +++ b/lua/go/dap.lua @@ -191,7 +191,11 @@ M.prepare = function() _GO_NVIM_CFG.dap_debug_vt = { enabled_commands = true, all_frames = true } end local vt = utils.load_plugin('nvim-dap-virtual-text') - vt.setup(_GO_NVIM_CFG.dap_debug_vt) + if vt then + vt.setup(_GO_NVIM_CFG.dap_debug_vt) + else + vim.notify('nvim-dap-virtual-text not found', vim.log.levels.INOF) + end end end