mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-15 20:25:58 +01:00
a0197fe1bb
The "new" DAG order is as follows: - (luaConfigPre) - globalsScript - basic - theme - pluginConfigs - extraPluginConfigs - mappings - (luaConfigPost)
19 lines
377 B
Nix
19 lines
377 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.lua) toLuaObject;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
cfg = config.vim.visuals.fidget-nvim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = ["fidget-nvim"];
|
|
|
|
vim.pluginRC.fidget-nvim = entryAnywhere ''
|
|
require'fidget'.setup(${toLuaObject cfg.setupOpts})
|
|
'';
|
|
};
|
|
}
|