Skip to content

Commit 9802bf0

Browse files
authored
Merge branch 'wakatime:master' into master
2 parents c7b6573 + 5d11a25 commit 9802bf0

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,16 @@
2323

2424
Or with [Lazy.nvim](https://github.com/folke/lazy.nvim.git): add to your plugins file.
2525
```lua
26-
{
27-
"wakatime/vim-wakatime",
28-
lazy=false,
29-
setup = function ()
30-
vim.cmd([[packadd wakatime/vim-wakatime]])
31-
end
32-
}
26+
{ 'wakatime/vim-wakatime', lazy = false }
3327
```
3428

3529
3. Restart Vim.
3630

37-
4. If this is the first WakaTime plugin on your machine, enter your [API Key](https://wakatime.com/api-key), then press `enter`.
31+
4. If this is the first WakaTime plugin on your machine, type `:WakaTimeApiKey` inside Vim.
3832

39-
5. Use Vim and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).
33+
5. Enter your [API Key](https://wakatime.com/api-key), then press `enter`.
34+
35+
6. Use Vim and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).
4036

4137

4238
## Screen Shots
@@ -46,7 +42,7 @@
4642

4743
## Commands
4844

49-
* `:WakaTimeApiKey` - change the api key saved in your `~/.wakatime.cfg`
45+
* `:WakaTimeApiKey` - set or change the api key saved in your `~/.wakatime.cfg`
5046
* `:WakaTimeDebugEnable` - enable debug mode (may slow down Vim so disable when finished debugging)
5147
* `:WakaTimeDebugDisable` - disable debug mode
5248
* `:WakaTimeScreenRedrawEnable` - enable screen redraw to prevent artifacts (only for Vim < 8.0)

plugin/wakatime.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ EOF
337337
endif
338338

339339
if !found_api_key
340-
call s:PromptForApiKey()
341-
echo "[WakaTime] Setup complete! Visit https://wakatime.com to view your coding activity."
340+
echoerr '[WakaTime] Type the Vim command :WakaTimeApiKey to enter your WakaTime API Key. Find yours at https://wakatime.com/api-key'
342341
endif
343342

344343
let s:config_file_already_setup = s:true

0 commit comments

Comments
 (0)