Skip to content

Commit 1681414

Browse files
committed
1 parent 7af6e98 commit 1681414

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

config/nvim/lua/settings.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ vim.api.nvim_create_autocmd("Filetype", {
2020
vim.opt.expandtab = false
2121
end,
2222
})
23+
vim.filetype.add({
24+
extension = {
25+
-- Set files like "main.gitconfig" to be gitconfig files.
26+
gitconfig = "gitconfig"
27+
},
28+
})
2329
vim.cmd([[filetype plugin indent on]]) -- Enable filetype-specific indentation.
2430

2531
-- Search settings.

home/main.gitconfig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[format]
1919
pretty = %C(auto)%h%Creset -%C(auto)%d%Creset %s %C(blue)<%an> %Cgreen(%cr)%Creset
2020
[push]
21-
default = simple
21+
default = current
2222
[pager]
2323
# Disable paging for `git branch`.
2424
branch = false
@@ -28,3 +28,9 @@
2828
side-by-side = true
2929
[interactive]
3030
diffFilter = delta --color-only
31+
[merge]
32+
conflictstyle = zdiff3
33+
[commit]
34+
verbose = true
35+
[diff]
36+
algoritm = histogram

0 commit comments

Comments
 (0)