plugins/gitgutter: migrate to mkVimPlugin

This commit is contained in:
Gaetan Lepage 2024-12-16 09:00:18 +01:00
parent 76e9d89d96
commit 0edc061a6c
4 changed files with 399 additions and 229 deletions

View file

@ -0,0 +1,70 @@
lib:
[
"maxSigns"
{
old = "showMessageOnHunkJumping";
new = "show_msg_on_hunk_jumping";
}
{
old = "defaultMaps";
new = "map_keys";
}
{
old = "allowClobberSigns";
new = "sign_allow_clobber";
}
"signPriority"
{
old = "matchBackgrounds";
new = "set_sign_backgrounds";
}
{
old = "diffRelativeToWorkingTree";
new = "diff_relative_to";
}
{
old = "extraGitArgs";
new = "git_args";
}
{
old = "extraDiffArgs";
new = "diff_args";
}
{
old = "enableByDefault";
new = "enabled";
}
{
old = "signsByDefault";
new = "signs";
}
"highlightLines"
{
old = "highlightLineNumbers";
new = "highlight_linenrs";
}
{
old = "runAsync";
new = "async";
}
"previewWinFloating"
"useLocationList"
"terminalReportFocus"
]
++
lib.mapAttrsToList
(oldName: newName: {
old = [
"signs"
oldName
];
new = "sign_${newName}";
})
{
added = "added";
modified = "modified";
removed = "removed";
removedFirstLine = "removed_first_line";
removedAboveAndBelow = "removed_above_and_below";
modifiedRemoved = "modified_removed";
}