feat: add LazyGit root detection on buffer enter
This commit is contained in:
@@ -54,6 +54,14 @@ autocmd({ "BufEnter", "FocusGained" }, {
|
|||||||
end,
|
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
|
-- TodoFzfLua command override to use Telescope
|
||||||
-- when fzf-lua is not installed
|
-- when fzf-lua is not installed
|
||||||
autogrp("TodoFzfLua", { clear = true })
|
autogrp("TodoFzfLua", { clear = true })
|
||||||
|
|||||||
Reference in New Issue
Block a user