joshnavdev / indentation-multiline.nvim

NeoVim Plugin written in Lua to indent multilines with Tab and S-Tab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

indentation-multiline.nvim

NeoVim Plugin written in Lua to indent multilines in an easy way.

Features

  • Indent selected lines in VISUAL mode.

Install

  • 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)

Usage

By default this feature create the followind mappings in VISUAL mode:

  • <Tab>: Indent to the right.
  • <S-Tab>: Indent to the left.

Configuration

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

Last

This is my first plugin for Vim using Lua, if you see any way to improve I will appreciate the advices.

About

NeoVim Plugin written in Lua to indent multilines with Tab and S-Tab

License:MIT License


Languages

Language:Lua 97.5%Language:Makefile 2.5%