forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/startify: switch to settings option
- Loading branch information
1 parent
a5b7ff5
commit b9a2628
Showing
4 changed files
with
511 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
lib, | ||
config, | ||
helpers, | ||
pkgs, | ||
... | ||
}: | ||
with lib; | ||
with helpers.vim-plugin; | ||
mkVimPlugin config { | ||
name = "startify"; | ||
originalName = "vim-startify"; | ||
defaultPackage = pkgs.vimPlugins.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; | ||
}; | ||
} |
Oops, something went wrong.