feat: Adding gitconfig support finally

This commit is contained in:
2026-06-08 06:54:42 -05:00
parent 406be77c97
commit 02d8fff47e
3 changed files with 43 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ declare -A configs=(
["nvim/snippets"]="$HOME/.config/nvim/" ["nvim/snippets"]="$HOME/.config/nvim/"
["tmux.conf"]="$HOME/.tmux.conf" ["tmux.conf"]="$HOME/.tmux.conf"
["wezterm/wezterm.lua"]="$HOME/.config/wezterm/wezterm.lua" ["wezterm/wezterm.lua"]="$HOME/.config/wezterm/wezterm.lua"
["gitconfig"]="$HOME/.gitconfig"
) )
declare -a config_directories=( declare -a config_directories=(

41
gitconfig Normal file
View File

@@ -0,0 +1,41 @@
[push]
default = simple
[core]
autocrlf = input
[filter "lfs"]
clean = git-lfs clean -- %f
process = git-lfs filter-process
required = true
smudge = git-lfs smudge -- %f
[pull]
rebase = false
[init]
defaultBranch = main
[alias]
c = commit
d = diff
dl = diff HEAD^ HEAD
ds = diff --staged
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
s = status
branches = branch -avv
staash = stash --all
supdate = submodule update --remote
srupdate = submodule update --recursive
[merge]
tool = nvimdiff
[core]
editor = nvim
[rerere]
enabled = true
[include]
path = ~/.config/git/local

View File

@@ -1,7 +1,7 @@
-- Treesitter -- Treesitter
local rocks_path = os.getenv('HOME') .. "/.luarocks/lib/luarocks/rocks-5.1" local rocks_path = os.getenv('HOME') .. "/.luarocks/lib/luarocks/rocks-5.1"
-- Pick up the installed -- Pick up the installed parsers in the install dir
for _, parser_dir in ipairs(vim.fn.glob(rocks_path .. '/tree-sitter-*/*/', true, true)) do for _, parser_dir in ipairs(vim.fn.glob(rocks_path .. '/tree-sitter-*/*/', true, true)) do
vim.opt.runtimepath:prepend(parser_dir) vim.opt.runtimepath:prepend(parser_dir)
end end