Thanks to visit codestin.com
Credit goes to github.com

Skip to content

walkingshamrock/optiongroup.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

optiongroup.nvim

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.

Installation

Use your favorite plugin manager to install optiongroup.nvim. For example, with lazy.nvim:

require('lazy').setup({
  { 'walkingshamrock/optiongroup.nvim' },
})

Setup

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,
    },
  },
})

Usage

Use the :OptionGroup command to toggle a group by name:

:OptionGroup example_group

This will toggle the options defined in the example_group.

API

setup(config)

  • config.groups: A table where keys are group names and values are tables of options to toggle.

toggle(group_name)

  • group_name: The name of the group to toggle.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages