Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

chrisgrieser/wrench-knife

Repository files navigation

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.