mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
We used to only think of it as the plugin repo's name, but we have been needing to use it for the name of the plugin's packpath location.
111 lines
2.7 KiB
Nix
111 lines
2.7 KiB
Nix
{
|
|
lib,
|
|
helpers,
|
|
...
|
|
}:
|
|
with lib;
|
|
with helpers.vim-plugin;
|
|
mkVimPlugin {
|
|
name = "startify";
|
|
packPathName = "vim-startify";
|
|
package = "vim-startify";
|
|
globalPrefix = "startify_";
|
|
|
|
maintainers = [ maintainers.GaetanLepage ];
|
|
|
|
# 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:
|
|
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";
|
|
}
|
|
];
|
|
|
|
settingsOptions = import ./options.nix { inherit lib helpers; };
|
|
|
|
# TODO
|
|
settingsExample = {
|
|
custom_header = [
|
|
""
|
|
" ███╗ ██╗██╗██╗ ██╗██╗ ██╗██╗███╗ ███╗"
|
|
" ████╗ ██║██║╚██╗██╔╝██║ ██║██║████╗ ████║"
|
|
" ██╔██╗ ██║██║ ╚███╔╝ ██║ ██║██║██╔████╔██║"
|
|
" ██║╚██╗██║██║ ██╔██╗ ╚██╗ ██╔╝██║██║╚██╔╝██║"
|
|
" ██║ ╚████║██║██╔╝ ██╗ ╚████╔╝ ██║██║ ╚═╝ ██║"
|
|
" ╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝"
|
|
];
|
|
change_to_dir = false;
|
|
fortune_use_unicode = true;
|
|
};
|
|
}
|