Crate nvim_api

Source
Expand description

This module contains the bindings to the Neovim API, exposed in Lua through the vim.api table.

§Naming convention

All the functions have been renamed by dropping the leading nvim_ prefix, e.g. nvim_get_current_buf simply becomes get_current_buf.

Also, the functions starting with nvim_buf_*, nvim_win_* and nvim_tabpage_* are implemented as methods on the Buffer, Window and TabPage objects respectively.

Modules§

opts
Contains the *Opts structs representing the optional arguments passsed to Neovim API functions.
types
Contains various types given to and returned from Neovim API functions.

Structs§

Buffer
A wrapper around a Neovim buffer handle.
TabPage
A wrapper around a Neovim tab handle.
Window
A wrapper around a Neovim window handle.

Enums§

Error

Traits§

StringOrFunction
A Rust closure, a Function or a string.
StringOrInt
A string or an integer.
StringOrListOfStrings
A string or a list of strings.
ToFunction
A Rust closure or a Function.

Functions§

call_dict_function
Binding to nvim_call_dict_function.
call_function
Binding to nvim_call_function.
chan_send
Binding to nvim_chan_send.
clear_autocmds
Binding to nvim_clear_autocmds.
command
Binding to nvim_command.
create_augroup
Binding to nvim_create_augroup.
create_autocmd
Binding to nvim_create_autocmd.
create_buf
Binding to nvim_create_buf.
create_namespace
Binding to nvim_create_namespace.
create_user_command
Binding to nvim_create_user_command.
del_augroup_by_id
Binding to nvim_del_augroup_by_id.
del_augroup_by_name
Binding to nvim_del_augroup_by_name.
del_autocmd
Binding to nvim_del_autocmd.
del_current_line
Binding to nvim_del_current_line.
del_keymap
Binding to nvim_del_keymap.
del_mark
Binding to nvim_del_mark.
del_user_command
Binding to nvim_del_user_command.
del_var
Binding to nvim_del_var.
echo
Binding to nvim_echo.
err_write
Binding to nvim_err_write.
err_writeln
Binding to nvim_err_writeln.
eval
Binding to nvim_eval.
eval_statusline
Binding to nvim_eval_statusline.
exec
Binding to nvim_exec.
exec_autocmds
Binding to nvim_exec_autocmds.
feedkeys
Binding to nvim_feedkeys.
get_all_options_info
Binding to nvim_get_all_options_info.
get_autocmds
Binding to nvim_get_autocmds.
get_chan_info
Binding to nvim_get_chan_info.
get_color_by_name
Binding to nvim_get_color_by_name.
get_color_map
Binding to nvim_get_color_map.
get_commands
Binding to nvim_get_commands.
get_context
Binding to nvim_get_context.
get_current_buf
Binding to nvim_get_current_buf.
get_current_line
Binding to nvim_get_current_line.
get_current_tabpage
Binding to nvim_get_current_tabpage.
get_current_win
Binding to nvim_get_current_win.
get_hl_by_id
Binding to nvim_get_hl_by_id.
get_hl_by_name
Binding to nvim_get_hl_by_name.
get_hl_id_by_name
Binding to nvim_get_hl_id_by_name.
get_keymap
Binding to nvim_get_keymap.
get_mark
Binding to nvim_get_mark.
get_mode
Binding to nvim_get_mode.
get_namespaces
Binding to nvim_get_namespaces.
get_option
Binding to nvim_get_option.
get_option_info
Binding to nvim_get_option_info.
get_option_value
Binding to nvim_get_option_value.
get_proc
Binding to nvim_get_proc.
get_proc_children
Binding to nvim_get_proc_children.
get_runtime_file
Binding to nvim_get_runtime_file.
get_var
Binding to nvim_get_var.
get_vvar
Binding to nvim_get_vvar.
input
Binding to nvim_input.
input_mouse
Binding to nvim_input_mouse.
list_bufs
Binding to nvim_list_bufs.
list_chans
Binding to nvim_list_chans.
list_runtime_paths
Binding to nvim_list_runtime_paths.
list_tabpages
Binding to nvim_list_bufs.
list_uis
Binding to nvim_list_uis.
list_wins
Binding to nvim_list_wins.
load_context
Binding to nvim_load_context.
notify
Binding to nvim_notify.
open_term
Binding to nvim_open_term.
open_win
Binding to nvim_open_win.
out_write
Binding to nvim_out_write.
parse_expression
Binding to nvim_parse_expression.
paste
Binding to nvim_paste.
put
Binding to nvim_put.
replace_termcodes
Binding to nvim_replace_termcodes.
select_popupmenu_item
Binding to nvim_select_popupmenu_item.
set_current_buf
Binding to nvim_set_current_buf.
set_current_dir
Binding to nvim_set_current_dir.
set_current_line
Binding to nvim_set_current_line.
set_current_tabpage
Binding to nvim_set_current_tabpage.
set_current_win
Binding to nvim_set_current_win.
set_decoration_provider
Binding to nvim_set_decoration_provider.
set_hl
Binding to nvim_set_hl.
set_keymap
Binding to nvim_set_keymap.
set_option
Binding to nvim_set_option.
set_option_value
Binding to nvim_set_option_value.
set_var
Binding to nvim_set_var.
set_vvar
Binding to nvim_set_vvar.
strwidth
Binding to nvim_strwidth.