Adds git method

This commit is contained in:
Michel Fedde 2025-02-18 00:53:46 +01:00
parent b7da3ade1c
commit d34742c3bd
7 changed files with 87 additions and 10 deletions

View file

@ -0,0 +1,13 @@
local git = require("functions.git")
local enabledGit = os.getenv("ENABLE_GIT_SETUP") or false
if not enabledGit then
return
end
vim.api.nvim_create_user_command("GitPush", function()
git.push()
end, {})
vim.api.nvim_create_user_command("GitPull", function()
git.pull()
end, {})