1
0

Use event instead of cond for wakatime

cond doesn't work as expected
This commit is contained in:
Patrick Auernig 2023-09-09 18:28:48 +02:00
parent c89e372140
commit 3b48153637

View File

@ -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
}