···3333```
34343535this plugin is inspired by [vim-smoothie](https://github.com/psliwka/vim-smoothie) :)
3636+3737+## examples
3838+3939+this example code will automatically center your cursor after 1000 ms of inactivity:
4040+4141+```lua
4242+local timer = vim.uv.new_timer()
4343+if not timer then
4444+ return
4545+end
4646+4747+local timeout = 1000
4848+local interval = 20
4949+local hold = false
5050+5151+local _timeout = timeout
5252+Smoothie.throttle(function(t)
5353+ _timeout = _timeout - t.delta
5454+5555+ if not hold and _timeout <= 0 then
5656+ local mode = vim.api.nvim_get_mode().mode
5757+ if mode ~= "n" then
5858+ return
5959+ end
6060+6161+ hold = true
6262+ vim.api.nvim_feedkeys("zz", "n", false)
6363+ end
6464+end, interval)
6565+6666+vim.api.nvim_create_autocmd("CursorMoved", {
6767+ group = vim.api.nvim_create_augroup("@smoothie.cursormoved", { clear = true }),
6868+ callback = function(_)
6969+ hold = false
7070+ _timeout = timeout
7171+ end,
7272+})
7373+```