Skip to content

Commit

Permalink
Vim language should be alternate not primary
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Dec 2, 2021
1 parent 0d66dd3 commit 103e852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ EOF
let cmd = cmd + ['--write']
endif
if has_key(heartbeat, 'language')
let cmd = cmd + ['--language', heartbeat.language]
let cmd = cmd + ['--alternate-language', heartbeat.language]
endif
if extra_heartbeats != ''
let cmd = cmd + ['--extra-heartbeats']
Expand Down Expand Up @@ -555,7 +555,7 @@ EOF
let heartbeat_str = heartbeat_str . 'false'
endif
if has_key(heartbeat, 'language')
let heartbeat_str = heartbeat_str . ', "language": "' . s:JsonEscape(heartbeat.language) . '"'
let heartbeat_str = heartbeat_str . ', "alternate_language": "' . s:JsonEscape(heartbeat.language) . '"'
endif
let heartbeat_str = heartbeat_str . '}'
let arr = arr + [heartbeat_str]
Expand Down

0 comments on commit 103e852

Please sign in to comment.