mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-24 18:52:22 +08:00
perf(a.lua): log alternate file name
This commit is contained in:
parent
fb30dd3b0d
commit
3e96e1325f
@ -69,10 +69,11 @@ function M.alt(request_parse, ...)
|
|||||||
local file = sp_file.unify_path(fn.bufname('%'), ':.')
|
local file = sp_file.unify_path(fn.bufname('%'), ':.')
|
||||||
alt = M.get_alt(file, conf_file_path, request_parse, alt_type)
|
alt = M.get_alt(file, conf_file_path, request_parse, alt_type)
|
||||||
end
|
end
|
||||||
logger.info(' > found alternate file: ' .. alt)
|
|
||||||
if alt ~= nil and alt ~= '' then
|
if alt ~= nil and alt ~= '' then
|
||||||
|
logger.info(' > found alternate file: ' .. alt)
|
||||||
cmd('e ' .. alt)
|
cmd('e ' .. alt)
|
||||||
else
|
else
|
||||||
|
logger.info(' > failed to find alternate file')
|
||||||
nt.notify('failed to find alternate file!', 'WarningMsg')
|
nt.notify('failed to find alternate file!', 'WarningMsg')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user