optiongroup.nvim
is a Neovim plugin that allows you to toggle groups of options by name. This is useful for quickly switching between different configurations or setups.
Use your favorite plugin manager to install optiongroup.nvim
. For example, with lazy.nvim:
require('lazy').setup({
{ 'walkingshamrock/optiongroup.nvim' },
})
Configure the plugin by calling the setup
function and passing a table of groups. Each group is a table of options to toggle:
require('optiongroup').setup({
groups = {
example_group = {
relativenumber = true,
number = true,
},
},
})
Use the :OptionGroup
command to toggle a group by name:
:OptionGroup example_group
This will toggle the options defined in the example_group
.
config.groups
: A table where keys are group names and values are tables of options to toggle.
group_name
: The name of the group to toggle.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License. See the LICENSE
file for details.