From c6252937b207e40e72a6d646900c86ab4cd664a1 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Thu, 3 Nov 2022 09:02:33 +0000 Subject: [PATCH] use rev-parse instead of status --- lua/core/lazy_load.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/lazy_load.lua b/lua/core/lazy_load.lua index e57bb1f..29973d4 100644 --- a/lua/core/lazy_load.lua +++ b/lua/core/lazy_load.lua @@ -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()