nvim/lua/plugins/diff.lua
2024-12-02 16:57:34 +08:00

35 lines
559 B
Lua

#! /usr/bin/env lua
--
-- diff.lua
-- Copyright (C) 2024 veypi <i@veypi.com>
--
-- Distributed under terms of the GPL license.
--
return {
{
"echasnovski/mini.diff",
event = "VeryLazy",
keys = {
{
"<leader>go",
function()
require("mini.diff").toggle_overlay(0)
end,
desc = "Toggle mini.diff overlay",
},
},
opts = {
view = {
style = "sign",
signs = {
add = "",
change = "",
delete = "",
},
},
},
}
}