mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-15 05:25:59 +01:00
plugins/theme: fix fixed theme DAG place
This commit is contained in:
parent
c3e42d15ec
commit
62c80aa912
2 changed files with 4 additions and 5 deletions
|
@ -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;}}
|
||||
'';
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue