mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-12 11:19:49 +01:00
21 lines
328 B
Nix
21 lines
328 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib.modules) mkIf;
|
||
|
|
||
|
cfg = config.vim.ui.nvim-ufo;
|
||
|
in {
|
||
|
config = mkIf cfg.enable {
|
||
|
vim = {
|
||
|
startPlugins = ["promise-async"];
|
||
|
lazy.plugins.nvim-ufo = {
|
||
|
package = "nvim-ufo";
|
||
|
setupModule = "ufo";
|
||
|
inherit (cfg) setupOpts;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|