1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-30 17:09:48 +01:00
neovim-flake/docs/manual/configuring/custom-plugins/new-method.md

27 lines
585 B
Markdown
Raw Normal View History

2023-12-09 20:03:58 +01:00
# New Method {#sec-new-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:
2023-12-09 20:03:58 +01:00
```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"];
};
};
}
```