diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 8350d37..5a8501b 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -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 })