Navigation Menu

Skip to content

Commit

Permalink
pass syntax of current file to wakatime-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Apr 19, 2016
1 parent d119ab2 commit 8f4f7b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/wakatime.vim
Expand Up @@ -135,6 +135,13 @@ let s:VERSION = '4.0.9'
if a:is_write
let cmd = cmd + ['--write']
endif
if &syntax != ''
let cmd = cmd + ['--alternate-language', &syntax]
else
if &filetype != ''
let cmd = cmd + ['--alternate-language', &filetype]
endif
endif
"let cmd = cmd + ['--verbose']
if has('win32') || has('win64')
exec 'silent !start /min cmd /c "' . s:JoinArgs(cmd) . '"'
Expand Down

0 comments on commit 8f4f7b0

Please sign in to comment.