Skip to content

Commit

Permalink
plugins/nixvim: init
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 16, 2024
1 parent 429f2e8 commit b9ea7f8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions plugins/by-name/nabla/default.nix
Original file line number Diff line number Diff line change
@@ -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 = "<leader>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 ];
}
5 changes: 5 additions & 0 deletions tests/test-sources/plugins/by-name/nabla/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
empty = {
plugins.nabla.enable = true;
};
}

0 comments on commit b9ea7f8

Please sign in to comment.