Use event instead of cond for wakatime
cond doesn't work as expected
This commit is contained in:
parent
c89e372140
commit
3b48153637
@ -1,6 +1,10 @@
|
||||
return {
|
||||
"wakatime/vim-wakatime",
|
||||
cond = function()
|
||||
return not (os.getenv("WAKATIME_HOME") == nil)
|
||||
event = function()
|
||||
if os.getenv("WAKATIME_HOME") then
|
||||
return { "VimEnter" }
|
||||
else
|
||||
return {}
|
||||
end
|
||||
end
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user