Skip to content

joshnavdev/indentation-multiline.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published