1
1
Fork 0
dotfiles/nvim/lua/plugins/codestats.lua
2025-06-16 10:36:32 -06:00

17 lines
817 B
Lua

return {
"liljaylj/codestats.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
event = { "TextChanged", "InsertEnter" },
cmd = { "CodeStatsXpSend", "CodeStatsProfileUpdate" },
config = function()
require("codestats").setup({
username = "gaiety", -- needed to fetch profile data
base_url = "https://codestats.net", -- codestats.net base url
api_key = "SFMyNTY.WjJGcFpYUjUjI01qSXhPVFU9.fMtCrS4QvdQKCgS_pasnqpWGUyrk3At646kPkN7LIn8",
send_on_exit = true, -- send xp on nvim exit
send_on_timer = true, -- send xp on timer
timer_interval = 60000, -- timer interval in milliseconds (minimum 1000ms to prevent DDoSing codestat.net servers)
curl_timeout = 5, -- curl request timeout in seconds
})
end,
}