fix: Windows User cannot load gitsigns

This commit is contained in:
Lucario387 2022-08-20 22:30:01 +09:00 committed by Sidhanth Rathod
parent 089cbe43f1
commit 4a5a927de8

View file

@ -79,7 +79,7 @@ M.mason_cmds = {
M.gitsigns = function() M.gitsigns = function()
autocmd({ "BufRead" }, { autocmd({ "BufRead" }, {
callback = function() callback = function()
vim.fn.system("git rev-parse 2>/dev/null " .. vim.fn.expand "%:p:h") vim.fn.system("git rev-parse " .. vim.fn.expand "%:p:h")
if vim.v.shell_error == 0 then if vim.v.shell_error == 0 then
vim.schedule(function() vim.schedule(function()
require("packer").loader "gitsigns.nvim" require("packer").loader "gitsigns.nvim"