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

17 lines
297 B
Lua
Raw Normal View History

2024-05-04 20:32:00 +02:00
local resources = require("anthropic").resources
2024-04-18 16:47:37 +02:00
local M = {}
2024-05-04 20:32:00 +02:00
M.index = 0
2024-04-18 16:47:37 +02:00
2024-04-18 18:48:49 +02:00
--- # Get spinner
2024-04-18 16:47:37 +02:00
---
--- This function gets the current spinner icon
2024-05-03 22:49:50 +02:00
---@return string spinner
function M.get_spinner()
2024-05-04 20:32:00 +02:00
M.index = M.index + 1
return resources.spinner[M.index % #resources.spinner + 1]
2024-04-18 16:47:37 +02:00
end
return M