Skip to content

Commit

Permalink
ui/nvim-ufo: init (#537)
Browse files Browse the repository at this point in the history
* flake: add nvim-ufo

* ui/nvim-ufo: init

* docs: update relase notes
  • Loading branch information
horriblename authored Jan 9, 2025
1 parent ab49ba4 commit a26cdd2
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/release-notes/rl-0.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@
[horriblename](https://github.com/horriblename):

[aerial.nvim](https://github.com/stevearc/aerial.nvim)
[nvim-ufo](https://github.com/kevinhwang91/nvim-ufo)

- Add [aerial.nvim]
- Add [nvim-ufo]
34 changes: 34 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,16 @@
flake = false;
};

plugin-promise-async = {
url = "github:kevinhwang91/promise-async";
flake = false;
};

plugin-nvim-ufo = {
url = "github:kevinhwang91/nvim-ufo";
flake = false;
};

plugin-new-file-template-nvim = {
# (required by new-file-template.nvim)
url = "github:otavioschwanck/new-file-template.nvim";
Expand Down
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 a26cdd2

Please sign in to comment.