Something went wrong. Try again.
My own personal NeoVim configuration. Powered by vim.pack and lz.n
Something went wrong. Try again.
12345678910111213141516171819202122232425return { 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, },}