refactor(git): drive :G dispatch from buffer content
This commit is contained in:
@@ -97,10 +97,7 @@ function M.read_uri(buf)
|
||||
end
|
||||
repo.bind(buf, r)
|
||||
|
||||
vim.bo[buf].swapfile = false
|
||||
vim.bo[buf].bufhidden = "delete"
|
||||
vim.bo[buf].buftype = "nofile"
|
||||
vim.bo[buf].modifiable = false
|
||||
util.setup_scratch(buf, { bufhidden = "delete" })
|
||||
if vim.bo[buf].filetype ~= "gitlog" then
|
||||
vim.bo[buf].filetype = "gitlog"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user