Skip to content

Commit

Permalink
Add some new gitconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPickles committed Feb 23, 2024
1 parent 7af6e98 commit 1681414
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/nvim/lua/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ vim.api.nvim_create_autocmd("Filetype", {
vim.opt.expandtab = false
end,
})
vim.filetype.add({
extension = {
-- Set files like "main.gitconfig" to be gitconfig files.
gitconfig = "gitconfig"
},
})
vim.cmd([[filetype plugin indent on]]) -- Enable filetype-specific indentation.

-- Search settings.
Expand Down
8 changes: 7 additions & 1 deletion home/main.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[format]
pretty = %C(auto)%h%Creset -%C(auto)%d%Creset %s %C(blue)<%an> %Cgreen(%cr)%Creset
[push]
default = simple
default = current
[pager]
# Disable paging for `git branch`.
branch = false
Expand All @@ -28,3 +28,9 @@
side-by-side = true
[interactive]
diffFilter = delta --color-only
[merge]
conflictstyle = zdiff3
[commit]
verbose = true
[diff]
algoritm = histogram

0 comments on commit 1681414

Please sign in to comment.