chore: back to fugitive

This commit is contained in:
Mariano Z. 2025-03-28 20:33:57 -03:00
parent cd71c6519e
commit 867159343a
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
10 changed files with 107 additions and 130 deletions

View file

@ -3,3 +3,17 @@ require("config.options")
require("config.remap")
require("config.autocomands")
require("config.lazy")
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
local config_path = vim.fn.stdpath("config")
local current_dir = vim.fn.getcwd()
if current_dir == config_path then
vim.fn.system("git config core.hooksPath .githooks")
if vim.v.shell_error ~= 0 then
vim.notify("Failed to set git hooks path for Neovim config", vim.log.levels.WARN)
end
end
end,
desc = "Set git hooks path for Neovim config directory only",
})