Crate neophyte_ui_event

Source

Re-exports§

pub use grid_line::GridLine;
pub use hl_attr_define::HlAttrDefine;
pub use mode_info_set::ModeInfoSet;
pub use msg_history_show::MsgHistoryShow;
pub use msg_show::MsgShow;
pub use option_set::OptionSet;
pub use rgb::Rgb;

Modules§

grid_line
hl_attr_define
mode_info_set
msg_history_show
msg_show
option_set
rgb

Structs§

Chdir
Set the position and size of the outer grid size. If the window was previously hidden, it should now be shown again.
CmdlineBlockAppend
Append a line at the end of the currently shown block.
CmdlineBlockShow
Show a block of text to the current command line, for example if the user defines a function interactively.
CmdlinePos
Change the cursor position in the cmdline.
CmdlineShow
Triggered when the cmdline is displayed or changed.
CmdlineSpecialChar
Display a special char in the cmdline at the cursor position. This is typically used to indicate a pending state, such as after .
Content
A text sequence with highlighting.
DefaultColorsSet
Sets the default foreground, background, and special colors.
GridClear
Clear a grid
GridCursorGoto
Set the current grid and cursor position
GridDestroy
Grid will not be used anymore and the UI can free any data associated with it.
GridResize
Resize a grid
GridScroll
Scroll a grid region. This is semantically unrelated to editor scrolling, rather this is an optimized way to say “copy these screen cells”.
HlGroupSet
The built-in highlight group name was set to use the attributes hl_id defined by a previous hl_attr_define call. This event is not needed to render the grids which use attribute ids directly, but is useful for a UI who want to render its own elements with consistent highlighting.
ModeChange
Editor mode changed.
MsgRuler
Used to display ‘ruler’ when there is no space for the ruler in a statusline. This event is sent with empty content to hide the last message.
MsgSetPos
Display messages on grid. The grid will be displayed at row on the default grid (grid=1), covering the full column width. When ui-messages is active, no message grid is used, and this event will not be sent.
MsgShowcmd
Shows ‘showcmd’. This event is sent with empty content to hide the last message.
MsgShowmode
Shows ‘showmode’ and recording messages. This event is sent with empty content to hide the last message.
PopupmenuSelect
Select an item in the current popupmenu.
PopupmenuShow
Show popupmenu completion
SetIcon
Set the global minimized window title
SetTitle
Set the global window title
TablineUpdate
Tabline was updated.
Values
An iterator over values in a MessagePack array.
WinClose
Stop displaying the window. The window can be shown again later.
WinExternalPos
Display or reconfigure external window. The window should be displayed as a separate top-level window in the desktop environment or something similar.
WinExtmark
Updates the position of an extmark which is currently visible in a window.
WinFloatPos
Display or reconfigure a floating window.
WinHide
Stop displaying the window. The window can be shown again later.
WinPos
Set the position and size of the outer grid size. If the window was previously hidden, it should now be shown again.
WinViewport
Indicates the range of buffer text displayed in the window, as well as the cursor position in the buffer.
WinViewportMargins
Indicates the margins of a window grid which are not part of the viewport as indicated by the win_viewport event. This happens in the presence of winbar and floating window borders.

Enums§

Anchor
Which corner of the float to place at the anchor position
Error
Event
A UI event sent by the Neovim instance. See here for detailed documentation: https://neovim.io/doc/user/ui.html

Traits§

MaybeInto
Like TryInto but with Option as the return type.
Parse
Construct the given type from a MessagePack value. Similar to TryFrom.