Integration plugin for ocp-indent.
- You can choose tree way to reindent your code:
- Automatically indent while typing.
- Reindent selected zone.
- Reindent on save.
- (TODO) Detect ocp-indent configuration files.
Install using your favorite package manager. For instance using Lazy
{
'Halbaroth/ocp-indent.nvim',
config = true
}
For custom configuration, use
{
'Halbaroth/ocp-indent.nvim',
opts = { ... },
config = true
}
By default, the plugin doesn't register any shortcuts. Use the option bindings
to set up default shortcuts.
(TODO)