Skip to content

Commit

Permalink
ufo: init
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jan 8, 2025
1 parent 343bc09 commit f7c4f8b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/plugins/ui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
imports = [
./noice
./modes
./nvim-ufo
./notifications
./smartcolumn
./colorizer
Expand Down
20 changes: 20 additions & 0 deletions modules/plugins/ui/nvim-ufo/config.nix
Original file line number Diff line number Diff line change
@@ -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;
};
};
};
}
6 changes: 6 additions & 0 deletions modules/plugins/ui/nvim-ufo/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
imports = [
./nvim-ufo.nix
./config.nix
];
}
9 changes: 9 additions & 0 deletions modules/plugins/ui/nvim-ufo/nvim-ufo.nix
Original file line number Diff line number Diff line change
@@ -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" {};
};
}

0 comments on commit f7c4f8b

Please sign in to comment.