The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Neovim::Ext::Buffer - Neovim Buffer class

VERSION

version 0.05

SYNPOSIS

        use Neovim::Ext;

        my $buffer = $nvim->current->buffer;

        push @$buffer, 'line'; # add a new line to the buffer
        @$buffer = ();         # delete all buffer lines

        # check if the buffer is valid
        if (tied (@{$buffer})->valid)
        {
                ...
        }

DESCRIPTION

A remote Nvim buffer. A Neovim::Ext::Buffer instance is a tied array reference.

METHODS

mark( $name )

Return the row and column for a named mark.

range( $start, $end )

Return a Neovim::Ext::Range which represents part of the buffer.

name( [$name] )

Get or set buffer name.

number( )

Get the buffer number.

valid( )

Check if the buffer still exists.