mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
29 lines
783 B
Markdown
29 lines
783 B
Markdown
# Non-lazy Method {#sec-non-lazy-method}
|
|
|
|
As of version **0.5**, we have a more extensive API for configuring plugins that
|
|
should be preferred over the legacy method. This API is available as
|
|
[](#opt-vim.extraPlugins). Instead of using DAGs exposed by the library
|
|
_directly_, you may use the extra plugin module as follows:
|
|
|
|
```nix
|
|
{pkgs, ...}: {
|
|
config.vim.extraPlugins = {
|
|
aerial = {
|
|
package = pkgs.vimPlugins.aerial-nvim;
|
|
setup = ''
|
|
require('aerial').setup {
|
|
-- some lua configuration here
|
|
}
|
|
'';
|
|
};
|
|
|
|
harpoon = {
|
|
package = pkgs.vimPlugins.harpoon;
|
|
setup = "require('harpoon').setup {}";
|
|
after = ["aerial"];
|
|
};
|
|
};
|
|
}
|
|
```
|
|
|
|
This provides a level of abstraction over the DAG system for faster iteration.
|