This Neovim plugin provides mappings and textobj for indentations.
Jumping along the indents ([i
, ]i
):
Text object (dii
, cai
, yii
, vai
, etc.):
This library supports Neovim 0.7.0 or newer.
This plugin depends are the following libraries. Please make sure to add them as dependencies in your package manager:
Use your favourite package manager to install this library. Packer example:
use({
"arsham/indent-tools.nvim",
requires = { "arsham/arshlib.nvim" },
config = function() require("indent-tools").config({}) end,
})
By default this pluging adds all necessary mappings. However you can change or disable them to your liking.
To disable set them to false
. For example:
require("indent-tools").config({
textobj = false,
})
Here is the default settings:
{
normal = {
up = "[i",
down = "]i",
},
textobj = {
ii = "ii",
ai = "ai",
},
}
You can let your package manager to load this plugin when a key-mapping event is fired. Packer example:
use({
"arsham/indent-tools.nvim",
requires = { "arsham/arshlib.nvim" },
config = function() require("indent-tools").config({}) end,
keys = { "]i", "[i", { "v", "ii" }, { "o", "ii" } },
})
Licensed under the MIT License. Check the LICENSE file for details.