Skip to content

Commit

Permalink
Rename wakatime-zed to zed-wakatime
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Sep 19, 2024
1 parent 9826044 commit 73ac872
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "wakatime-zed"
name = "zed-wakatime"
version.workspace = true
edition = "2021"

[dependencies]
zed_extension_api = "0.0.6"

[lib]
name = "wakatime_zed"
name = "zed_wakatime"
crate-type = ["cdylib"]

[workspace]
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# wakatime-zed
# zed-wakatime

A [Wakatime](https://wakatime.com/) extension for [Zed](https://zed.dev/).
A [WakaTime](https://wakatime.com/) extension for [Zed](https://zed.dev/).

Uses the [wakatime-ls](https://github.com/bestgopher/wakatime-zed/tree/master/wakatime-ls) to receive edit events from Zed and send hearbeats to Wakatime by [wakatime-cli](https://github.com/wakatime/wakatime-cli).
Uses the [wakatime-ls](https://github.com/wakatime/zed-wakatime/tree/master/wakatime-ls) to receive edit events from Zed and send hearbeats to WakaTime by [wakatime-cli](https://github.com/wakatime/wakatime-cli).

## Install
Search "wakatime" in extension page, and install it.
![type install](./images/install.png)

## Configuration
In order to authenticate with the Wakatime-cli, the language server needs to know your API token.
In order to authenticate with the wakatime-cli, the language server needs to know your API token.
Here are two ways to set the lsp.

### Wakatime configuration file
### WakaTime configuration file
create a file named `.wakatime.cfg`, locate your HOME directory.
```toml
[settings]
Expand Down
2 changes: 1 addition & 1 deletion extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Wakatime support."
version = "0.1.2"
schema_version = 1
authors = ["bestgopher <[email protected]>"]
repository = "https://github.com/bestgopher/wakatime-zed"
repository = "https://github.com/wakatime/zed-wakatime"

[language_servers.wakatime]
name = "wakatime"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl WakatimeExtension {
}

let binary_path =
self.download(language_server_id, "wakatime-ls", "bestgopher/wakatime-zed")?;
self.download(language_server_id, "wakatime-ls", "wakatime/zed-wakatime")?;

self.cached_ls_binary_path = Some(binary_path.clone());

Expand Down
2 changes: 1 addition & 1 deletion wakatime-ls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "wakatime-ls"
version.workspace = true
edition = "2021"
repository = "https://github.com/bestgopher/wakatime-zed"
repository = "https://github.com/wakatime/zed-wakatime"


[dependencies]
Expand Down

0 comments on commit 73ac872

Please sign in to comment.