mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-05 02:53:38 -08:00
update nvim
This commit is contained in:
@@ -221,6 +221,55 @@ return {
|
||||
diff = {
|
||||
enabled = true,
|
||||
provider = "mini_diff",
|
||||
provider_opts = {
|
||||
-- Options for inline diff provider
|
||||
inline = {
|
||||
layout = "buffer", -- float|buffer - Where to display the diff
|
||||
|
||||
diff_signs = {
|
||||
signs = {
|
||||
text = "▌", -- Sign text for normal changes
|
||||
reject = "✗", -- Sign text for rejected changes in super_diff
|
||||
highlight_groups = {
|
||||
addition = "DiagnosticOk",
|
||||
deletion = "DiagnosticError",
|
||||
modification = "DiagnosticWarn",
|
||||
},
|
||||
},
|
||||
-- Super Diff options
|
||||
icons = {
|
||||
accepted = " ",
|
||||
rejected = " ",
|
||||
},
|
||||
colors = {
|
||||
accepted = "DiagnosticOk",
|
||||
rejected = "DiagnosticError",
|
||||
},
|
||||
},
|
||||
|
||||
opts = {
|
||||
context_lines = 3, -- Number of context lines in hunks
|
||||
dim = 25, -- Background dim level for floating diff (0-100, [100 full transparent], only applies when layout = "float")
|
||||
full_width_removed = true, -- Make removed lines span full width
|
||||
show_keymap_hints = true, -- Show "gda: accept | gdr: reject" hints above diff
|
||||
show_removed = true, -- Show removed lines as virtual text
|
||||
},
|
||||
},
|
||||
-- Options for the split provider
|
||||
split = {
|
||||
close_chat_at = 240, -- Close an open chat buffer if the total columns of your display are less than...
|
||||
layout = "vertical", -- vertical|horizontal split
|
||||
opts = {
|
||||
"internal",
|
||||
"filler",
|
||||
"closeoff",
|
||||
"algorithm:histogram", -- https://adamj.eu/tech/2024/01/18/git-improve-diff-histogram/
|
||||
"indent-heuristic", -- https://blog.k-nut.eu/better-git-diffs
|
||||
"followwrap",
|
||||
"linematch:120",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
---Customize how tokens are displayed
|
||||
---@param tokens number
|
||||
|
||||
Reference in New Issue
Block a user