docs » EmmyLua

Thie plugin generates EmmyLua annotations for Hammerspoon and any installed Spoons under ~/.hammerspoon/Spoons/EmmyLua.spoon/annotations. Annotations will only be generated if they don't exist yet or are out of date.

Note: Load this Spoon before any pathwatchers are defined to avoid unintended behaviour (for example multiple reloads when the annotions are created).

In order to get auto completion in your editor, you need to have one of the following LSP servers properly configured:

To start using this annotations library, add the annotations folder to your workspace. for lua-languag-server:

{
  "Lua.workspace.library": ["/Users/YOUR_USERNAME/.hammerspoon/Spoons/EmmyLua.spoon/annotations"]
}

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/EmmyLua.spoon.zip

API Overview

API Documentation