mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-11 22:53:55 +00:00
784 B
784 B
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
{option}vim.extraPlugins. Instead of using DAGs exposed by the library
directly, you may use the extra plugin module as follows:
{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.