mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 12:50:37 +00:00
use rev-parse instead of status
This commit is contained in:
parent
d3fe3fcc1a
commit
c6252937b2
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ M.gitsigns = function()
|
||||||
autocmd({ "BufRead" }, {
|
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" .. " status")
|
vim.fn.system("git -C " .. vim.fn.expand "%:p:h" .. " rev-parse")
|
||||||
if vim.v.shell_error == 0 then
|
if vim.v.shell_error == 0 then
|
||||||
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
|
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
|
|
Loading…
Reference in a new issue