Description

This layer adds support for editing Lua.

Features:

  • Editing lua files using lua-mode
  • Sending code to a lua REPL
  • Code linting using Luacheck

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add lua to the existing dotspacemacs-configuration-layers list in this file.

In order to enable code linting, install Luacheck.

Key Bindings

Commands

Key BindingDescription
SPC m dlookup thing at point in lua documentation
SPC m s bsend buffer contents to REPL
SPC m s fsend current function to REPL
SPC m s lsend current line to REPL
SPC m s rsend current region to REPL