From 3e96e1325f15acdf7e9f13f360c434222bfe6090 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 16 Jul 2023 13:10:27 +0800 Subject: [PATCH] perf(a.lua): log alternate file name --- lua/spacevim/plugin/a.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/spacevim/plugin/a.lua b/lua/spacevim/plugin/a.lua index a21e1354b..e2ec1c3f6 100644 --- a/lua/spacevim/plugin/a.lua +++ b/lua/spacevim/plugin/a.lua @@ -69,10 +69,11 @@ function M.alt(request_parse, ...) local file = sp_file.unify_path(fn.bufname('%'), ':.') alt = M.get_alt(file, conf_file_path, request_parse, alt_type) end - logger.info(' > found alternate file: ' .. alt) if alt ~= nil and alt ~= '' then + logger.info(' > found alternate file: ' .. alt) cmd('e ' .. alt) else + logger.info(' > failed to find alternate file') nt.notify('failed to find alternate file!', 'WarningMsg') end end