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 {
|
return {
|
||||||
"wakatime/vim-wakatime",
|
"wakatime/vim-wakatime",
|
||||||
cond = function()
|
event = function()
|
||||||
return not (os.getenv("WAKATIME_HOME") == nil)
|
if os.getenv("WAKATIME_HOME") then
|
||||||
|
return { "VimEnter" }
|
||||||
|
else
|
||||||
|
return {}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user