/wrench-knife

Collection of useful snippets for Hammerspoon

Primary LanguageLuaMIT LicenseMIT

Archival Notice

The content of this repo has been merged with the awesome-hammerspoon repo. All further contents will be added there.


Wrench-Knife

Collection of useful snippets for Hammerspoon. Feel free to make PRs to add some snippets.

Contribute

Snippets added should:

  1. work as standalone snippets
  2. have a comment at the top what it does
  3. ideally also have at some rudimentary comments explaining how it works, so we can all learn

Documentation Search with Alfred

Download the Alfred Workflow, and use the keyword hs to search the Hammerspoon online Docs.

LSP Support for Hammerspoon

  1. Set up lua-ls in the IDE of your choice.
  2. Install the EmmyLua Spoon and follow the instructions.
  3. Restart your IDE, you should now have completions and hover documentation for Hammerspoon.

Example Configs

The Hammerspoon wiki contains several example configs.