don't display setup complete message every time Vim starts, only display first time setting up cfg file.
This commit is contained in:
parent
93214f59c6
commit
7da8bf757e
1 changed files with 2 additions and 1 deletions
|
@ -73,6 +73,7 @@ let s:VERSION = '4.0.0'
|
|||
let key = input("[WakaTime] Enter your wakatime.com api key: ")
|
||||
if key != ''
|
||||
call writefile(['[settings]', 'debug = false', printf("api_key = %s", key), 'hidefilenames = false', 'ignore =', ' COMMIT_EDITMSG$', ' TAG_EDITMSG$'], s:config_file)
|
||||
echo "[WakaTime] Setup complete! Visit http://wakatime.com to view your logged time."
|
||||
endif
|
||||
|
||||
" Make sure config file has api_key
|
||||
|
@ -89,11 +90,11 @@ let s:VERSION = '4.0.0'
|
|||
let key = input("[WakaTime] Enter your wakatime.com api key: ")
|
||||
let lines = lines + [join(['api_key', key], '=')]
|
||||
call writefile(lines, s:config_file)
|
||||
echo "[WakaTime] Setup complete! Visit http://wakatime.com to view your logged time."
|
||||
endif
|
||||
endif
|
||||
|
||||
let s:config_file_already_setup = 1
|
||||
echo "[WakaTime] Setup complete! Visit http://wakatime.com to view your logged time."
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in a new issue