return { src = "https://github.com/wakatime/vim-wakatime", name = "vim-wakatime", spec = { "vim-wakatime", lazy = true, beforeAll = function() local loaded = false vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, { callback = function(ev) if loaded then return end local name = vim.api.nvim_buf_get_name(ev.buf) local root = vim.fs.root(name ~= "" and name or vim.fn.getcwd(), ".git") if root then loaded = true require("lz.n").trigger_load("vim-wakatime") end end, }) end, }, }