mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-10 14:45:58 +01:00
17 lines
316 B
Nix
17 lines
316 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib) mkIf nvim;
|
||
|
cfg = config.vim.visuals.fidget-nvim;
|
||
|
in {
|
||
|
config = mkIf cfg.enable {
|
||
|
vim.startPlugins = ["fidget-nvim"];
|
||
|
|
||
|
vim.luaConfigRC.fidget-nvim = nvim.dag.entryAnywhere ''
|
||
|
require'fidget'.setup(${nvim.lua.toLuaObject cfg.setupOpts})
|
||
|
'';
|
||
|
};
|
||
|
}
|