fix: not detecting subdir in git repo

navigator
Lucario387 2 years ago committed by Sidhanth Rathod
parent be6d1f995f
commit 8e8d18ed8d

@ -79,11 +79,11 @@ M.mason_cmds = {
M.gitsigns = function()
autocmd({ "BufRead" }, {
callback = function()
if vim.fn.isdirectory ".git" ~= 0 then
vim.schedule(function()
require("packer").loader "gitsigns.nvim"
end)
end
vim.fn.system([[git rev-parse 2>/dev/null]])
if vim.v.shell_error == 0 then
vim.schedule(function()
require("packer").loader "gitsigns.nvim"
end)
end,
})
end

Loading…
Cancel
Save