mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-30 22:59:31 +02:00
plugins/gitgutter: migrate to mkVimPlugin
This commit is contained in:
parent
76e9d89d96
commit
0edc061a6c
4 changed files with 399 additions and 229 deletions
70
plugins/by-name/gitgutter/renamed-options.nix
Normal file
70
plugins/by-name/gitgutter/renamed-options.nix
Normal 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue