plugins/theme: fix fixed theme DAG place

This commit is contained in:
diniamo 2024-07-15 13:07:45 +02:00
parent c3e42d15ec
commit 62c80aa912
2 changed files with 4 additions and 5 deletions

View file

@ -7,7 +7,7 @@
inherit (lib.attrsets) attrNames;
inherit (lib.types) bool lines enum;
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryBetween;
inherit (lib.nvim.dag) entryAfter;
cfg = config.vim.theme;
supportedThemes = import ./supported-themes.nix {
@ -45,7 +45,7 @@ in {
config = mkIf cfg.enable {
vim = {
startPlugins = [cfg.name];
luaConfigRC.theme = entryBetween ["basic"] ["pluginConfigs"] ''
luaConfigRC.theme = entryAfter ["basic"] ''
${cfg.extraConfig}
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent;}}
'';

View file

@ -134,9 +134,8 @@ in {
vim = {
luaConfigRC = {
globalsScript = concatLines globalsScript;
# basic comes after globalsScript,
# but it's defined modules/neovim/init/basic.nix
pluginConfigs = entryAfter ["basic"] pluginConfigs;
# basic, theme
pluginConfigs = entryAfter ["theme"] pluginConfigs;
extraPluginConfigs = entryAfter ["pluginConfigs"] extraPluginConfigs;
mappings = entryAfter ["extraPluginConfigs"] mappings;
};