mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 16:49:49 +01:00
19 lines
380 B
Nix
19 lines
380 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.luaConfigRC.fidget-nvim = entryAnywhere ''
|
|
require'fidget'.setup(${toLuaObject cfg.setupOpts})
|
|
'';
|
|
};
|
|
}
|