Adds git method
This commit is contained in:
parent
b7da3ade1c
commit
d34742c3bd
7 changed files with 87 additions and 10 deletions
13
.config/nvim/lua/commands/Git.lua
Normal file
13
.config/nvim/lua/commands/Git.lua
Normal 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, {})
|
||||
Loading…
Add table
Add a link
Reference in a new issue