activate.nvim
is a plugin installation system for Neovim, designed to complement folke/lazy.nvim.
activate.nvim
can automatically generate a default setup. This aims to reduce the initial setup time for new plugins.awesome-neovim
repository and updates this plugins data.json
file which is then sync'd down to Neovim by lazy.nvim
, just like any other plugin.After a plugin is installed using activate.nvim
, plugin updates are managed by lazy.nvim
in the same way as any other plugin.
To provide the latest plugins, a Github pipeline checks the awesome-neovim repository every three hours for updates. If changes are detected, the data/data.json
file is updated. As a result, lazy.nvim
will recognize the changes to activate.nvim
, ensuring that the latest plugins are always accessible.
setup.lua.example
Plugin authors can support activate.nvim
by adhering to an unofficial standard. This involves creating a file named setup.lua.example
in their plugin repository. The file should return a lazy.nvim
compatible configuration in the $HOME/.config/nvim/lua/plugins
directory, as demonstrated below:
return {
"roobert/tabtree.nvim",
config = function()
require("tabtree").setup()
end,
}
When plugins don't conform to the unofficial standard outlined above, then a placeholder config is generated, for example, $HOME/.config/nvim/lua/plugins/grapple.lua
:
-- No example configuration was found for this plugin.
--
-- For detailed information on configuring this plugin, please refer to its
-- official documentation:
--
-- https://github.com/cbochs/grapple.nvim
--
-- If you wish to use this plugin, you can optionally modify and then uncomment
-- the configuration below.
return {
-- "cbochs/grapple.nvim"
}
For lazy.nvim
, add this config to ~/.config/nvim/lua/plugins/activate.lua
:
return {
"roobert/activate.nvim",
keys = {
{
"<leader>P",
'<CMD>lua require("activate").list_plugins()<CR>',
desc = "Plugins",
},
},
dependencies = {
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } }
}
}