ribosome-0.9.9.9: Neovim plugin framework for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Api.Mode

Description

API functions for obtaining Neovim's current mode.

Synopsis

Documentation

data SimpleMode Source #

An encoding of Neovim's mode for only the most basic variants.

Constructors

Normal 
Visual 
Insert 
Other Text 

Instances

Instances details
IsString SimpleMode Source # 
Instance details

Defined in Ribosome.Api.Mode

Show SimpleMode Source # 
Instance details

Defined in Ribosome.Api.Mode

Eq SimpleMode Source # 
Instance details

Defined in Ribosome.Api.Mode

MsgpackDecode SimpleMode Source # 
Instance details

Defined in Ribosome.Api.Mode

simpleMode :: Member Rpc r => Sem r SimpleMode Source #

Get the current mode as a SimpleMode.

visualModeActive :: Member Rpc r => Sem r Bool Source #

Indicate whether Neovim is in visual mode.

mode :: Member Rpc r => Sem r NvimMode Source #

Get the current mode.