fix(plugins): lazy trigger for git repositories

This commit is contained in:
Guz
2025-12-15 18:44:32 -03:00
parent 43cc8f1eaf
commit 3218d73dce

View File

@@ -162,7 +162,7 @@ lze.load({
"SessionSearch", "SessionSearch",
"Auutosession", "Auutosession",
}, },
lazy = not (#(vim.fs.root(0, ".git") or 0) > 0), lazy = not (#(vim.fs.root(0, ".git") or {}) > 0),
}, },
-- Secrets hiding -- Secrets hiding
@@ -232,7 +232,7 @@ lze.load({
desc = "[Git] Toggle line blame", desc = "[Git] Toggle line blame",
}, },
}, },
lazy = not (#vim.fs.root(0, ".git") > 0), lazy = not (#(vim.fs.root(0, ".git") or {}) > 0),
}, },
-- Todo comments -- Todo comments