mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 06:29:48 +01:00
f9789432f9
* modules: switch to gerg's neovim-wrapper * modules: use initViml instead of writing the file * treewide: make the entire generated config lua based * docs: remove mentions of configRC * plugins/treesitter: remove vim.cmd hack * treewide: move resolveDag to lib * modules/wrapper(rc): fix typo * treewide: migrate to pluginRC for correct DAG order The "new" DAG order is as follows: - (luaConfigPre) - globalsScript - basic - theme - pluginConfigs - extraPluginConfigs - mappings - (luaConfigPost) * plugins/theme: fix theme DAG place * plugins/theme: fix fixed theme DAG place * modules/wrapper(rc): add removed option module for configRC * docs: add dag-entries chapter, add release note entry * fix: formatting CI * languages/nix: add missing `local` * docs: fix page link * docs: add mention of breaking changes at the start of the release notes * plugins/neo-tree: convert to pluginRC * modules/wrapper(rc): add back entryAnywhere * modules/wrapper(rc): expose pluginRC * apply raf patch --------- Co-authored-by: NotAShelf <raf@notashelf.dev>
49 lines
1.7 KiB
Nix
49 lines
1.7 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.dashboard.startify;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = with pkgs.vimPlugins; [vim-startify];
|
|
|
|
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;
|
|
"startify_change_to_dir" = cfg.changeToDir;
|
|
"startify_change_to_vcs_root" = cfg.changeToVCRoot;
|
|
"startify_change_cmd" = cfg.changeDirCmd;
|
|
"startify_skiplist" = cfg.skipList;
|
|
"startify_update_oldfiles" = cfg.updateOldFiles;
|
|
"startify_session_autoload" = cfg.sessionAutoload;
|
|
"startify_commands" = cfg.commands;
|
|
"startify_files_number" = cfg.filesNumber;
|
|
"startify_custom_indices" = cfg.customIndices;
|
|
"startify_disable_at_vimenter" = cfg.disableOnStartup;
|
|
"startify_enable_unsafe" = cfg.unsafe;
|
|
"startify_padding_left" = cfg.paddingLeft;
|
|
"startify_use_env" = cfg.useEnv;
|
|
"startify_session_before_save" = cfg.sessionBeforeSave;
|
|
"startify_session_persistence" = cfg.sessionPersistence;
|
|
"startify_session_delete_buffers" = cfg.sessionDeleteBuffers;
|
|
"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;
|
|
"startify_session_sort" = cfg.sessionSort;
|
|
};
|
|
};
|
|
}
|