2
0
Fork 0
anthropic.nvim/lua/anthropic/util/spinner.lua

17 lines
297 B
Lua

local resources = require("anthropic").resources
local M = {}
M.index = 0
--- # Get spinner
---
--- This function gets the current spinner icon
---@return string spinner
function M.get_spinner()
M.index = M.index + 1
return resources.spinner[M.index % #resources.spinner + 1]
end
return M