feat: add LazyGit root detection on buffer enter

This commit is contained in:
2024-09-16 09:46:38 -04:00
parent f9b9d23f9a
commit f1edd2aba0
+8
View File
@@ -54,6 +54,14 @@ autocmd({ "BufEnter", "FocusGained" }, {
end,
})
-- LazyGit root detection
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*",
callback = function()
require("lazygit.utils").project_root_dir()
end,
})
-- TodoFzfLua command override to use Telescope
-- when fzf-lua is not installed
autogrp("TodoFzfLua", { clear = true })