test: add more debug logging
This commit is contained in:
1 file changed
+3
@@ -67,8 +67,10 @@ local function pick_copy_paste_tool()
|
|||||||
|
|
||||||
local function check_detect(tool)
|
local function check_detect(tool)
|
||||||
if type(tool.detect) == "function" then
|
if type(tool.detect) == "function" then
|
||||||
|
info("[universal-clipboard.nvim]: running detect function for " .. tool.name)
|
||||||
return tool.detect()
|
return tool.detect()
|
||||||
elseif type(tool.detect) == "string" then
|
elseif type(tool.detect) == "string" then
|
||||||
|
info("[universal-clipboard.nvim]: checking for executable " .. tool.detect)
|
||||||
return vim.fn.executable(tool.detect) == 1
|
return vim.fn.executable(tool.detect) == 1
|
||||||
else
|
else
|
||||||
vim.notify(
|
vim.notify(
|
||||||
@@ -81,6 +83,7 @@ local function pick_copy_paste_tool()
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _, tool in ipairs(M.opts.tools) do
|
for _, tool in ipairs(M.opts.tools) do
|
||||||
|
info("[universal-clipboard.nvim] checking for " .. tool.name)
|
||||||
if check_detect(tool) then
|
if check_detect(tool) then
|
||||||
info("[universal-clipboard.nvim] found " .. tool.name)
|
info("[universal-clipboard.nvim] found " .. tool.name)
|
||||||
return tool
|
return tool
|
||||||
|
|||||||
Reference in new issue
Block a user