nix-community.nixvim/plugins/utils/startify/default.nix

114 lines
2.8 KiB
Nix
Raw Normal View History

{
lib,
config,
helpers,
pkgs,
...
}:
with lib;
with helpers.vim-plugin;
2024-05-05 19:39:35 +02:00
mkVimPlugin config {
name = "startify";
originalName = "vim-startify";
defaultPackage = pkgs.vimPlugins.vim-startify;
globalPrefix = "startify_";
2024-05-05 19:39:35 +02:00
maintainers = [ maintainers.GaetanLepage ];
2024-05-05 19:39:35 +02:00
# TODO introduced 2024-03-01: remove 2024-05-01
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"sessionDir"
"lists"
"bookmarks"
"commands"
"filesNumber"
"sessionAutoload"
"sessionBeforeSave"
"sessionPersistence"
"sessionDeleteBuffers"
"changeToDir"
"changeToVcsRoot"
"changeCmd"
"paddingLeft"
"enableSpecial"
"enableUnsafe"
"sessionRemoveLines"
"sessionNumber"
"sessionSort"
"customIndices"
"customHeader"
"customFooter"
"relativePath"
"useEnv"
];
imports =
map
(
option:
2024-05-05 19:39:35 +02:00
mkRenamedOptionModule
[
"plugins"
"startify"
option.old
]
[
"plugins"
"startify"
"settings"
option.new
]
)
[
{
old = "updateOldFiles";
new = "update_oldfiles";
}
{
old = "skipList";
new = "skiplist";
}
{
old = "useUnicode";
new = "fortune_use_unicode";
}
{
old = "skipListServer";
new = "skiplist_server";
}
{
old = "sessionSaveVars";
new = "session_savevars";
}
{
old = "sessionCmds";
new = "session_savecmds";
}
{
old = "customQuotes";
new = "custom_header_quotes";
}
{
old = "disableAtVimEnter";
new = "disable_at_vimenter";
}
];
2024-05-05 19:39:35 +02:00
settingsOptions = import ./options.nix { inherit lib helpers; };
2024-05-05 19:39:35 +02:00
# TODO
settingsExample = {
custom_header = [
""
" "
" "
" "
" "
" "
" "
];
change_to_dir = false;
fortune_use_unicode = true;
};
}