mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
chore: back to fugitive
This commit is contained in:
parent
cd71c6519e
commit
867159343a
10 changed files with 107 additions and 130 deletions
14
init.lua
14
init.lua
|
@ -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",
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue