53 lines
1.1 KiB
Lua
53 lines
1.1 KiB
Lua
return {
|
|
"sindrets/diffview.nvim",
|
|
opts = {
|
|
diff_binaries = false,
|
|
enhanced_diff_hl = true,
|
|
git_cmd = { "git" },
|
|
use_icons = true,
|
|
icons = {
|
|
folder_closed = "",
|
|
folder_open = "",
|
|
},
|
|
signs = {
|
|
fold_closed = "",
|
|
fold_open = "",
|
|
},
|
|
view = {
|
|
merge_tool = {
|
|
layout = "diff3_mixed",
|
|
disable_diagnostics = true,
|
|
},
|
|
},
|
|
file_panel = {
|
|
listing_style = "tree",
|
|
tree_options = {
|
|
flatten_dirs = true,
|
|
folder_statuses = "only_folded",
|
|
},
|
|
win_config = {
|
|
position = "left",
|
|
width = 35,
|
|
},
|
|
},
|
|
file_history_panel = {
|
|
log_options = {
|
|
git = {
|
|
single_file = {
|
|
diff_merges = "combined",
|
|
},
|
|
multi_file = {
|
|
diff_merges = "first-parent",
|
|
},
|
|
},
|
|
},
|
|
win_config = {
|
|
position = "bottom",
|
|
height = 16,
|
|
},
|
|
},
|
|
},
|
|
keys = {
|
|
{ "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Opens git diff view." },
|
|
},
|
|
}
|