visuals/fidget: migrate to newer configuration with custom setup options

This commit is contained in:
Frothy 2024-02-10 20:49:27 -05:00
commit 042af02955
6 changed files with 411 additions and 34 deletions

View file

@ -0,0 +1,16 @@
{
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})
'';
};
}