WIP: update-upstream #4

Closed
cscherrNT wants to merge 69 commits from update-upstream into master
1 changed files with 12 additions and 7 deletions
Showing only changes of commit bfd0ea7dcd - Show all commits

View File

@ -91,13 +91,18 @@ local default_plugins = {
vim.api.nvim_create_autocmd({ "BufRead" }, { vim.api.nvim_create_autocmd({ "BufRead" }, {
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }), group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
callback = function() callback = function()
vim.fn.system("git -C " .. '"' .. vim.fn.expand "%:p:h" .. '"' .. " rev-parse") vim.fn.jobstart({"git", "-C", vim.loop.cwd(), "rev-parse"},
if vim.v.shell_error == 0 then {
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad" on_exit = function(_, return_code)
vim.schedule(function() if return_code == 0 then
require("lazy").load { plugins = { "gitsigns.nvim" } } vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
end) vim.schedule(function()
end require("lazy").load { plugins = { "gitsigns.nvim" } }
end)
end
end
}
)
end, end,
}) })
end, end,