test: add more debug logging

This commit is contained in:
swaits committed 2024-12-26 20:31:57 -07:00
1 parent d680fd17d0
commit 7d6c529b11
1 file changed
+3
+3
View File
@@ -67,8 +67,10 @@ local function pick_copy_paste_tool()
local function check_detect(tool)
if type(tool.detect) == "function" then
info("[universal-clipboard.nvim]: running detect function for " .. tool.name)
return tool.detect()
elseif type(tool.detect) == "string" then
info("[universal-clipboard.nvim]: checking for executable " .. tool.detect)
return vim.fn.executable(tool.detect) == 1
else
vim.notify(
@@ -81,6 +83,7 @@ local function pick_copy_paste_tool()
end
for _, tool in ipairs(M.opts.tools) do
info("[universal-clipboard.nvim] checking for " .. tool.name)
if check_detect(tool) then
info("[universal-clipboard.nvim] found " .. tool.name)
return tool