1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

perf(git): open remote branch log in new tab

This commit is contained in:
Eric Wong 2024-02-23 13:30:57 +08:00
parent 8077f78d13
commit b2651ab24a

View File

@ -145,7 +145,7 @@ end
local function view_git_log()
local cursor_info = get_cursor_info()
if cursor_info.branch then
log.debug('run command:' .. 'Git log ' .. cursor_info.branch)
log.debug('run command:' .. 'tabnew | Git log ' .. cursor_info.branch)
vim.api.nvim_command('Git log ' .. cursor_info.branch)
end
end