fix: not detecting subdir in git repo
This commit is contained in:
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.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,
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue