From b9ea7f88b6117f076d3b122d9bec3f379c57a17a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 16 Oct 2024 11:48:37 +0200 Subject: [PATCH] plugins/nixvim: init --- plugins/by-name/nabla/default.nix | 29 +++++++++++++++++++ .../plugins/by-name/nabla/default.nix | 5 ++++ 2 files changed, 34 insertions(+) create mode 100644 plugins/by-name/nabla/default.nix create mode 100644 tests/test-sources/plugins/by-name/nabla/default.nix diff --git a/plugins/by-name/nabla/default.nix b/plugins/by-name/nabla/default.nix new file mode 100644 index 000000000..14e17c838 --- /dev/null +++ b/plugins/by-name/nabla/default.nix @@ -0,0 +1,29 @@ +{ + lib, + ... +}: +lib.nixvim.vim-plugin.mkVimPlugin { + name = "nabla"; + originalName = "nabla.nvim"; + package = "nabla-nvim"; + + description = '' + You can bind the popup action like so: + ```nix + keymaps = [ + { + key = "p"; + action.__raw = "require('nabla').popup"; + } + ]; + ``` + + You can also wrap an explicit call to `popup` in a `function() ... end` in order to provide + a `border` option. + + See [README](https://github.com/jbyuki/nabla.nvim/?tab=readme-ov-file#configuration) for more + information. + ''; + + maintainers = [ lib.maintainers.GaetanLepage ]; +} diff --git a/tests/test-sources/plugins/by-name/nabla/default.nix b/tests/test-sources/plugins/by-name/nabla/default.nix new file mode 100644 index 000000000..d4b871d5f --- /dev/null +++ b/tests/test-sources/plugins/by-name/nabla/default.nix @@ -0,0 +1,5 @@ +{ + empty = { + plugins.nabla.enable = true; + }; +}