2015-06-10 16:44:30 +00:00
|
|
|
#+TITLE: Lua contribution layer for Spacemacs
|
2015-11-08 18:04:44 +00:00
|
|
|
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
[[file:img/lua.gif]]
|
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Features:][Features:]]
|
|
|
|
- [[Install][Install]]
|
|
|
|
- [[Key Bindings][Key Bindings]]
|
|
|
|
- [[Commands][Commands]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer adds support for editing Lua.
|
|
|
|
|
2015-06-10 21:16:01 +00:00
|
|
|
** Features:
|
2015-06-10 16:44:30 +00:00
|
|
|
- Editing lua files using [[https://github.com/immerrr/lua-mode][lua-mode]]
|
|
|
|
- Sending code to a lua REPL
|
2016-02-17 14:01:10 +00:00
|
|
|
- Code linting using [[https://github.com/mpeterv/luacheck][Luacheck]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Install
|
2016-01-06 05:21:55 +00:00
|
|
|
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.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2016-02-17 14:01:10 +00:00
|
|
|
In order to enable code linting, install [[https://github.com/mpeterv/luacheck][Luacheck]].
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2016-02-17 14:01:10 +00:00
|
|
|
* Key Bindings
|
2015-06-10 16:44:30 +00:00
|
|
|
** Commands
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+--------------------------------------------|
|
|
|
|
| ~SPC m d~ | lookup thing at point in lua documentation |
|
|
|
|
| ~SPC m s b~ | send buffer contents to REPL |
|
|
|
|
| ~SPC m s f~ | send current function to REPL |
|
|
|
|
| ~SPC m s l~ | send current line to REPL |
|
|
|
|
| ~SPC m s r~ | send current region to REPL |
|