GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - andrejlevkovitch/vim-lua-format

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
autoload
autoload
 
 
plugin
plugin
 
 
README.md
README.md
 
 

Repository files navigation

vim-lua-format

Lua vim formatter supported by LuaFormatter.

Install

Use Vundle to get the vim-lua-format plugin. After installing it you need to add the following lines in your .vimrc file:

  autocmd FileType lua nnoremap <buffer> <c-k> :call LuaFormat()<cr>
  autocmd BufWrite *.lua call LuaFormat()

And it's done!

Then press <C-K> or simply save some *.lua file to format the Lua code automatically.

NOTE if you need to use the LuaFormat() function directly from command mode, you should call it explicitly as :call LuaFormat()

Features

Reformats your Lua source code.

Extension Settings

  • .lua-format: Specifies the style config file. Style Options

The .lua-format file must be in the source or parent directory. If there is no configuration file the default settings are used.

Known Issues

You may have an error that claims unknown -i or -si options. This is happening because some versions of lua-formatter uses different flags.

So if you get any error about unknown flag, just change it to the correct flag in flags string variable at lua_format#format() function.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

31 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.