- call( $name, @args )
- chdir( $path )
- close( )
- command( $string, @args)
- command_output( )
- err_write( $msg )
- err_writeln( $msg )
- eval( $string, @args )
- exec_lua( $code, @args )
- feedkeys ($keys, [$options, $escape_csi])
- foreach_rtp( \&cb )
- input( $bytes )
- list_runtime_paths( )
- list_uis( )
- next_message( )
- out_write( $msg, @args )
- quit( [$quit_command])
- replace_termcodes( $string, [$from_part, $do_lt, $special] )
- request( $name, @args)
- run_loop($request_cb, $notification_cb, [$setup_cb, $err_cb] )
- stop_loop( )
- strwidth( $string )
- subscribe( $event )
- unsubscribe( $event )
- LICENSE AND COPYRIGHT
Neovim::Ext - Perl bindings for neovim
Perl interface to Neovim
Create a new Nvim instance for
Promote the current process into a perl plugin host for Nvim. It starts the event loop for
$session, listening for Nvim requests and notifications, and also registers Nvim commands for loading/unloading perl plugins.
Call a vimscript function.
Set the Nvim current directory.
Close the Nvim session.
Execute a single ex command.
Execute a single ex command and return the output.
$msg as an error message. Does not append a newline and won't be displayed if a linefeed is not sent.
$msg as an error message. Appends a newline so the buffer is flushed and displayed.
Evaluate a vimscript expression
Execute lua code.
$keys< to Nvim user input buffer. Options can be a string with the following character flags:
Remap keys. This is the default.
Do not remap keys.
"t" Handle keys as if typed; otherwise they are handled as if coming from a mapping. This matters for undo, opening folds, etc.
\&cb for each path in 'runtimepath'.
$bytes to Nvim's low level input buffer. Unliked
feedkeys() this uses the lowest level input buffer and the call is not deferred.
Return a list reference of paths contained in the 'runtimepath' option.
Gets a list of attached UIs.
Block until a message (request or notification) is available. If any messages were previously enqueued, return the first in the queue. If not, the event loop is run until one is received.
$msg as a normal message. The message is buffered and wont display until a linefeed is sent.
Send a quit command to Nvim. By default, the quit command is
qa! which will make Nvim quit without saving anything.
Replace any terminal code strings by byte sequences. The returned sequences are Nvim's internal representation of keys. The returned sequences can be used as input to
Send an API request or notification to Nvim.
Run the event loop to receive requests and notifications from Nvim. This should not be called from a plugin running in the host, which already runs the loop and dispatches events to plugins.
Stop the event loop.
Return the number of display cells
Subscribe to an Nvim event.
Unsubscribe from an Nvim event.
Jacques Germishuys <email@example.com>
Copyright 2019 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.