use rev-parse instead of status

pull/1695/head
Uy Ha 2 years ago committed by Sidhanth Rathod
parent d3fe3fcc1a
commit c6252937b2

@ -65,7 +65,7 @@ M.gitsigns = function()
autocmd({ "BufRead" }, {
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
callback = function()
vim.fn.system("git -C " .. vim.fn.expand "%:p:h" .. " status")
vim.fn.system("git -C " .. vim.fn.expand "%:p:h" .. " rev-parse")
if vim.v.shell_error == 0 then
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
vim.schedule(function()

Loading…
Cancel
Save