1
0

Git config + vim fugitive stuff

This commit is contained in:
2025-01-26 10:22:17 +01:00
parent 565cbf064a
commit 65aa80b8d8
2 changed files with 52 additions and 0 deletions

View File

@@ -47,3 +47,18 @@ vim.opt.incsearch = true
-- Make dotfile navigation bareble
vim.api.nvim_create_user_command('Dot', 'edit ~/.config/nvim', {})
-- Git
vim.api.nvim_create_user_command('Glog', function()
local args = {
'log',
'--graph',
'--abbrev-commit',
'--decorate',
}
local str = ''
for _, arg in pairs(args) do
str = str .. ' ' .. arg
end
vim.cmd.Git(str)
end, {})