refactor(git): gitlog as gitlog:// URI singleton, fix synthetic-URI cwd resolve

This commit is contained in:
2026-04-29 14:06:40 +02:00
parent 49c618959d
commit 781496dc13
4 changed files with 85 additions and 29 deletions
+7
View File
@@ -43,6 +43,13 @@ function M.setup()
object.read_uri(args.buf)
end,
})
vim.api.nvim_create_autocmd("BufReadCmd", {
pattern = "gitlog://*",
group = group,
callback = function(args)
log.read_uri(args.buf)
end,
})
vim.api.nvim_create_autocmd(
{ "BufReadPost", "BufNewFile", "BufWritePost", "FileChangedShellPost" },
{