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

Ribosome.Data.ScratchState

Description

Scratch buffer state.

Synopsis

Documentation

data ScratchState Source #

The configuration and Neovim resources that define a scratch buffer and describe its previously recorded UI state.

Constructors

ScratchState 

Fields

  • id :: ScratchId

    The scratch buffer's ID stored in the state.

  • options :: ScratchOptions

    The configuration used to create the scratch buffer.

  • buffer :: Buffer

    The Neovim buffer handle that was returned when it was last updated.

  • window :: Window

    The Neovim window handle that was returned when it was last updated.

  • previous :: Window

    The Neovim window handle that denotes the window that was active when the scratch buffer was created.

  • tab :: Maybe Tabpage

    The Neovim tabpage handle that was returned when it was last updated, if a tab was requested by the configuration.

  • autocmdId :: AutocmdId

    The ID of the autocmd that fires when the user deletes the scratch buffer.

Instances

Instances details
Generic ScratchState Source # 
Instance details

Defined in Ribosome.Data.ScratchState

Associated Types

type Rep ScratchState :: Type -> Type #

Show ScratchState Source # 
Instance details

Defined in Ribosome.Data.ScratchState

Eq ScratchState Source # 
Instance details

Defined in Ribosome.Data.ScratchState

type Rep ScratchState Source # 
Instance details

Defined in Ribosome.Data.ScratchState