neovim-flake/modules/plugins/ui/nvim-ufo/config.nix
Ching Pei Yang a26cdd2d25
ui/nvim-ufo: init (#537)
* flake: add nvim-ufo

* ui/nvim-ufo: init

* docs: update relase notes
2025-01-09 07:56:51 +00:00

20 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;
};
};
};
}