nvf/modules/plugins/visuals/fidget/config.nix

20 lines
377 B
Nix
Raw Permalink Normal View History

{
config,
lib,
...
}: let
2024-03-24 00:14:39 +00:00
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 ''
2024-03-24 00:14:39 +00:00
require'fidget'.setup(${toLuaObject cfg.setupOpts})
'';
};
}