File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -337,10 +337,10 @@ EOF
337
337
endif
338
338
339
339
if ! found_api_key
340
- echoerr ' [WakaTime] Type the Vim command :WakaTimeApiKey to enter your WakaTime API Key. Find yours at https://wakatime.com/api-key'
340
+ echomsg ' [WakaTime] Type the Vim command :WakaTimeApiKey to enter your WakaTime API Key. Find yours at https://wakatime.com/api-key'
341
+ else
342
+ let s: config_file_already_setup = s: true
341
343
endif
342
-
343
- let s: config_file_already_setup = s: true
344
344
endif
345
345
endfunction
346
346
@@ -740,14 +740,16 @@ EOF
740
740
endfunction
741
741
742
742
function ! s: PromptForApiKey ()
743
- let api_key = s: false
744
743
let api_key = s: GetIniSetting (' settings' , ' api_key' )
745
744
if empty (api_key)
746
745
let api_key = s: GetIniSetting (' settings' , ' apikey' )
747
746
endif
748
747
749
748
let api_key = inputsecret (" [WakaTime] Enter your wakatime.com api key: " , api_key)
750
749
call s: SetIniSetting (' settings' , ' api_key' , api_key)
750
+ if ! empty (api_key)
751
+ let s: config_file_already_setup = s: true
752
+ endif
751
753
endfunction
752
754
753
755
function ! s: EnableDebugMode ()
783
785
endfunction
784
786
785
787
function ! s: HandleActivity (is_write)
788
+ if ! s: config_file_already_setup
789
+ return
790
+ endif
786
791
let file = s: GetCurrentFile ()
787
792
if ! empty (file ) && file !~ " -MiniBufExplorer-" && file !~ " --NO NAME--" && file !~ " ^term:"
788
793
let last = s: GetLastHeartbeat ()
You can’t perform that action at this time.
0 commit comments