ufo: init

This commit is contained in:
Ching Pei Yang 2025-01-06 12:37:29 +01:00 committed by Ching Pei Yang
parent 343bc09d72
commit f7c4f8b787
4 changed files with 36 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [
./noice
./modes
./nvim-ufo
./notifications
./smartcolumn
./colorizer

View file

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

View file

@ -0,0 +1,6 @@
{
imports = [
./nvim-ufo.nix
./config.nix
];
}

View file

@ -0,0 +1,9 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.ui.nvim-ufo = {
enable = mkEnableOption "nvim-ufo";
setupOpts = mkPluginSetupOption "nvim-ufo" {};
};
}