vim.Ringbuf
Methods4
function Ringbuf.clear(self) -> nil
Clear all items
function Ringbuf.push<T>(self, item: T) -> nil
Adds an item, overriding the oldest item if the buffer is full.
function Ringbuf.pop<T>(self) -> T | nil
Removes and returns the first unread item
function Ringbuf.peek<T>(self) -> T | nil
Returns the first unread item without removing it