wakatime / vim-wakatime

Vim plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vim
BSD 3-Clause "New" or "Revised" License
1.03k stars 70 forks source link

Feature request: ignore missing api key #187

Closed xzfc closed 1 month ago

xzfc commented 1 month ago

I am using the same neovim configuration across multiple machines. Some of them have ~/.wakatime configured, and some of them don't. On machines without wakatime configured, vim-wakatime emits the following warnings on vim open and periodically every few minutes, which is annoying.

Error detected while processing BufEnter Autocommands for "*"..function <SNR>8_InitAndHandleActivity[2]..<SNR>8_SetupConfigFile:
line   22:
[WakaTime] Type the Vim command :WakaTimeApiKey to enter your WakaTime API Key. Find yours at https://wakatime.com/api-key
Press ENTER or type command to continue
Error detected while processing function <SNR>8_NeovimAsyncExitHandler:
line    6:
[WakaTime] Error 104: Invalid API Key
Press ENTER or type command to continue

It would be convenient, if these message be less annoying. Some suggestions:

I believe that merely installing the plugin shouldn't force the user to use it.

alanhamlett commented 1 month ago

Fixed with 53bba6bb8342de9cbdafc82142a9b5e82008d858.