NeoVim Plugin written in Lua to indent multilines in an easy way.
- Indent selected lines in VISUAL mode.
- Requires neovim version 0.7 above.
- Install this plugin like any other Vim plugin, e.g. with packer.nvim:
local use = require('packer').use require('packer').startup(function() use 'wbthomason/packer.nvim' -- Package manager use 'joshnavru/indentation-multiline' end)
By default this feature create the followind mappings in VISUAL mode:
<Tab>
: Indent to the right.<S-Tab>
: Indent to the left.
This plugin needs to be initialised using:
require('indentation-multiline').setup()
However you can pass config options, the defaults are:
{
-- Mapping for right-intent
indent_mapping = "<Tab>",
-- Mapping for left-intent
unindent_mapping = "<S-Tab>",
}
This is my first plugin for Vim using Lua, if you see any way to improve I will appreciate the advices.