doc: update configuration docs on custom plugins

This commit is contained in:
Ching Pei Yang 2024-11-03 18:43:28 +01:00
commit 850465faba
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
5 changed files with 73 additions and 12 deletions

View file

@ -0,0 +1,26 @@
# Non-lazy Method {#sec-non-lazy-method}
As of version **0.5**, we have a more extensive API for configuring plugins,
under `vim.extraPlugins`. Instead of using DAGs exposed by the library, you may
use the extra plugin module as follows:
```nix
{
config.vim.extraPlugins = with pkgs.vimPlugins; {
aerial = {
package = aerial-nvim;
setup = ''
require('aerial').setup {
-- some lua configuration here
}
'';
};
harpoon = {
package = harpoon;
setup = "require('harpoon').setup {}";
after = ["aerial"];
};
};
}
```