Skip to content

espcaa/zed-hackatime

 
 

Repository files navigation

zed-hackatime

this is a fork of zed-wakatime that should work better with hackatime!

Install

Search for "hackatime" in the "Extensions" page and click "Install".

WakaTime configuration file

Create a file named .wakatime.cfg in your $HOME directory.

[settings]
api_key = your-api-key

Go through up wakatime-cli's documentation for more options.

LSP Settings

Multiple configuration options are available by editing your Zed settings file (settings.json). (The extension should work without any configuration, but you can customize it as needed.)

"lsp": {
  "wakatime": {
    "initialization_options": {
      "api-key": "your-api-key",
      "api-url": "https://wakatime.com/api",
      "debug": false,
      "metrics": false,
      "heartbeat_interval": 120
    }
  }
}

Available options:

  • api-key (string, required): Your WakaTime API key
  • api-url (string, optional): Custom WakaTime API URL (e.g., for self-hosted instances)
  • debug (boolean, optional): Enable debug logging (default: false)
  • metrics (boolean, optional): Enable metrics collection (default: false)
  • heartbeat_interval (integer, optional): Seconds between heartbeats for the same file (default: 120)

Contributing

Don't hesitate to open an issue/submit a pr! this has been mainly tested on macos, but should work fine on other platforms as well.

About

Zed plugin for automatic time tracking and metrics generated from your programming activity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.2%
  • Shell 0.8%