35 lines
559 B
Lua
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 = "",
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|