Show a spinner whenever there is LSP job in progress
paq('doums/lswip.nvim')
local lswip = require('lswip')
lswip.setup({
-- Spinner frame interval (ms)
interval = 80,
-- Spinner frames
frames = { '▪', '■', '□', '▫' },
-- Redraw statuslines on spinner updates (new frame)
-- see :h redrawstatus
-- set to '!' for :redrawstatus! equivalent
redrawstatus = false,
})
The following API is exposed
get
:fn ()
->string
|nil
Returns the current spinner frame or nil
if there is no work in
progress
group
:string
Autocmd group ID used internally by lswip
User autocmd to get notified on spinner updates
The following data
table is passed to the callback function arguments
{
spin = true -- either the spinner spins or not
frame = '▪' -- current spinner frame (if spinning)
}
Mozilla Public License 2.0