Skip to content

Commit a26cdd2

Browse files
authored
ui/nvim-ufo: init (#537)
* flake: add nvim-ufo * ui/nvim-ufo: init * docs: update relase notes
1 parent ab49ba4 commit a26cdd2

File tree

7 files changed

+82
-0
lines changed

7 files changed

+82
-0
lines changed

docs/release-notes/rl-0.8.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@
3232
[horriblename](https://github.com/horriblename):
3333

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

3637
- Add [aerial.nvim]
38+
- Add [nvim-ufo]

flake.lock

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,16 @@
720720
flake = false;
721721
};
722722

723+
plugin-promise-async = {
724+
url = "github:kevinhwang91/promise-async";
725+
flake = false;
726+
};
727+
728+
plugin-nvim-ufo = {
729+
url = "github:kevinhwang91/nvim-ufo";
730+
flake = false;
731+
};
732+
723733
plugin-new-file-template-nvim = {
724734
# (required by new-file-template.nvim)
725735
url = "github:otavioschwanck/new-file-template.nvim";

modules/plugins/ui/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
imports = [
33
./noice
44
./modes
5+
./nvim-ufo
56
./notifications
67
./smartcolumn
78
./colorizer
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
lib,
3+
config,
4+
...
5+
}: let
6+
inherit (lib.modules) mkIf;
7+
8+
cfg = config.vim.ui.nvim-ufo;
9+
in {
10+
config = mkIf cfg.enable {
11+
vim = {
12+
startPlugins = ["promise-async"];
13+
lazy.plugins.nvim-ufo = {
14+
package = "nvim-ufo";
15+
setupModule = "ufo";
16+
inherit (cfg) setupOpts;
17+
};
18+
};
19+
};
20+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
imports = [
3+
./nvim-ufo.nix
4+
./config.nix
5+
];
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{lib, ...}: let
2+
inherit (lib.options) mkEnableOption;
3+
inherit (lib.nvim.types) mkPluginSetupOption;
4+
in {
5+
options.vim.ui.nvim-ufo = {
6+
enable = mkEnableOption "nvim-ufo";
7+
setupOpts = mkPluginSetupOption "nvim-ufo" {};
8+
};
9+
}

0 commit comments

Comments
 (0)