1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

perf(a.lua): log alternate file name

This commit is contained in:
wsdjeg 2023-07-16 13:10:27 +08:00
parent fb30dd3b0d
commit 3e96e1325f

View File

@ -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