2023-02-27 14:53:09 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-02-26 05:05:23 +00:00
|
|
|
inherit (lib.modules) mkIf;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-02-27 14:53:09 +00:00
|
|
|
cfg = config.vim.dashboard.startify;
|
|
|
|
in {
|
2024-02-09 06:56:05 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim.startPlugins = with pkgs.vimPlugins; [vim-startify];
|
2023-02-27 14:53:09 +00:00
|
|
|
|
|
|
|
vim.globals = {
|
|
|
|
"startify_custom_header" =
|
|
|
|
if cfg.customHeader == []
|
|
|
|
then null
|
|
|
|
else cfg.customHeader;
|
|
|
|
"startify_custom_footer" =
|
|
|
|
if cfg.customFooter == []
|
|
|
|
then null
|
|
|
|
else cfg.customFooter;
|
|
|
|
"startify_bookmarks" = cfg.bookmarks;
|
|
|
|
"startify_lists" = cfg.lists;
|
2024-07-20 08:30:48 +00:00
|
|
|
"startify_change_to_dir" = cfg.changeToDir;
|
|
|
|
"startify_change_to_vcs_root" = cfg.changeToVCRoot;
|
2023-02-27 14:53:09 +00:00
|
|
|
"startify_change_cmd" = cfg.changeDirCmd;
|
|
|
|
"startify_skiplist" = cfg.skipList;
|
2024-07-20 08:30:48 +00:00
|
|
|
"startify_update_oldfiles" = cfg.updateOldFiles;
|
|
|
|
"startify_session_autoload" = cfg.sessionAutoload;
|
2023-02-27 14:53:09 +00:00
|
|
|
"startify_commands" = cfg.commands;
|
|
|
|
"startify_files_number" = cfg.filesNumber;
|
|
|
|
"startify_custom_indices" = cfg.customIndices;
|
2024-07-20 08:30:48 +00:00
|
|
|
"startify_disable_at_vimenter" = cfg.disableOnStartup;
|
|
|
|
"startify_enable_unsafe" = cfg.unsafe;
|
2023-02-27 14:53:09 +00:00
|
|
|
"startify_padding_left" = cfg.paddingLeft;
|
2024-07-20 08:30:48 +00:00
|
|
|
"startify_use_env" = cfg.useEnv;
|
2023-02-27 14:53:09 +00:00
|
|
|
"startify_session_before_save" = cfg.sessionBeforeSave;
|
2024-07-20 08:30:48 +00:00
|
|
|
"startify_session_persistence" = cfg.sessionPersistence;
|
|
|
|
"startify_session_delete_buffers" = cfg.sessionDeleteBuffers;
|
2023-02-27 14:53:09 +00:00
|
|
|
"startify_session_dir" = cfg.sessionDir;
|
|
|
|
"startify_skiplist_server" = cfg.skipListServer;
|
|
|
|
"startify_session_remove_lines" = cfg.sessionRemoveLines;
|
|
|
|
"startify_session_savevars" = cfg.sessionSavevars;
|
|
|
|
"startify_session_savecmds" = cfg.sessionSavecmds;
|
2024-07-20 08:30:48 +00:00
|
|
|
"startify_session_sort" = cfg.sessionSort;
|
2023-02-27 14:53:09 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|