File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 23
23
24
24
Or with [ Lazy.nvim] ( https://github.com/folke/lazy.nvim.git ) : add to your plugins file.
25
25
``` 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 }
33
27
```
34
28
35
29
3 . Restart Vim.
36
30
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 .
38
32
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 ) .
40
36
41
37
42
38
## Screen Shots
46
42
47
43
## Commands
48
44
49
- * ` :WakaTimeApiKey ` - change the api key saved in your ` ~/.wakatime.cfg `
45
+ * ` :WakaTimeApiKey ` - set or change the api key saved in your ` ~/.wakatime.cfg `
50
46
* ` :WakaTimeDebugEnable ` - enable debug mode (may slow down Vim so disable when finished debugging)
51
47
* ` :WakaTimeDebugDisable ` - disable debug mode
52
48
* ` :WakaTimeScreenRedrawEnable ` - enable screen redraw to prevent artifacts (only for Vim < 8.0)
Original file line number Diff line number Diff line change 337
337
endif
338
338
339
339
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'
342
341
endif
343
342
344
343
let s: config_file_already_setup = s: true
You can’t perform that action at this time.
0 commit comments