Skip to content

drmingdrmer/vim-indent-lua

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
res
 
 
 
 
 
 

vim-indent-lua

Better lua indent script for VIM

Status

This script is in beta phase.

Description

Improve official lua indent script in several aspects. Not like the official one, this script indent codes in a true recursive manner, instead of checking only the previous line.

Features:

  • Aligns multi-line function parameters and items in ().
  • Aligns members in a table definition.
  • Fix indent of code block in a table {...}.
  • Indents the second line for a multi-line expression.

Before and After using this plugin:

Installation

Installing with pathogen.vim is recommended. Copy and paste:

cd ~/.vim/bundle
git clone git://github.com/drmingdrmer/vim-indent-lua.git

Or manually:

Download vim-indent-lua.zip and unzip it into ~/.vim.

Author

Zhang Yanpo (张炎泼) drdr.xp@gmail.com

Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com

About

better lua indent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published