cornelis-0.2.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cornelis.Pretty

Synopsis

Documentation

data HighlightGroup Source #

Custom highlight groups set by the plugin.

These groups linked to Neovim default highlight groups in syntax/agda.vim.

The suffix after CornelisXXX matches the names as returned by Agda, contained in hl_atoms. How these names are generated is not documented on Agda's side, but the implementation can be found at toAtoms. The correspoding Agda types are found in Precise.

NOTE: * When modifying this type, remember to sync the changes to syntax/agda.vim * This list of highlight groups does not yet cover all variants returned by Agda

Constructors

CornelisError

InfoWin highlight group of error messages

CornelisErrorWarning

InfoWin highlight group of warnings considered fatal

CornelisWarn

InfoWin highlight group of warnings

CornelisTitle

InfoWin highlight of section titles

CornelisName

InfoWin highlight of names in context

CornelisHole

An open hole ({! ... !} and ?)

CornelisUnsolvedMeta

An unresolved meta variable

CornelisUnsolvedConstraint

An unresolved constraint

CornelisKeyword

An Agda keywords (where, let, etc.)

CornelisSymbol

A symbol, not part of an identifier (=, :, {, etc.)

CornelisType

A datatype (Nat, Bool, etc.)

CornelisPrimitiveType

A primitive/builtin Agda type

CornelisRecord

A datatype, defined as a record

CornelisFunction

A function, e.g. a top-level declaration

CornelisArgument

The name of an (implicit) argument, i.e. Foo {bar = 42}

CornelisBound

A bound identifier, e.g. a variable in a pattern clause or a module parameter

CornelisOperator

A mixfix operator, e.g. x xs.

CornelisField

Field of a record definition

CornelisGeneralizable

A generalizable variable, defined for example in a variable block

CornelisMacro

A macro, defined in a macro block

CornelisInductiveConstructor

A constructor of an inductive data type (e.g. data Foo ...)

CornelisCoinductiveConstructor

A constructor for a coinductive datatype, i.e. a record marked coinductive

CornelisNumber

A number literal

CornelisComment

A comment

CornelisString

A string literal

CornelisCatchAllClause

"Catch-all clause". Some sort of fallback; not exactly clear where this is used

CornelisTypeChecks

A location being type-checked right now

CornelisModule

A module name, e.g. in a module block or an import

CornelisPostulate

A term, defined in a postulate block

CornelisPrimitive

An Agda primitive, e.g. Set

CornelisPragma

The argument to a pragma, e.g. {-# OPTIONS --foo -#}

Instances

Instances details
Bounded HighlightGroup Source # 
Instance details

Defined in Cornelis.Pretty

Enum HighlightGroup Source # 
Instance details

Defined in Cornelis.Pretty

Read HighlightGroup Source # 
Instance details

Defined in Cornelis.Pretty

Show HighlightGroup Source # 
Instance details

Defined in Cornelis.Pretty

Eq HighlightGroup Source # 
Instance details

Defined in Cornelis.Pretty

Ord HighlightGroup Source # 
Instance details

Defined in Cornelis.Pretty

priority :: HighlightGroup -> Int64 Source #

Priority of the HighlightGroup. See `:h vim.highlight.priorities` for more information.

100 is the default syntax highlighting priority, while 150 is reserved for diagnostics.

data InfoHighlight a Source #

Constructors

InfoHighlight 

Instances

Instances details
Functor InfoHighlight Source # 
Instance details

Defined in Cornelis.Pretty

Methods

fmap :: (a -> b) -> InfoHighlight a -> InfoHighlight b #

(<$) :: a -> InfoHighlight b -> InfoHighlight a #

Show a => Show (InfoHighlight a) Source # 
Instance details

Defined in Cornelis.Pretty

Eq a => Eq (InfoHighlight a) Source # 
Instance details

Defined in Cornelis.Pretty

Ord a => Ord (InfoHighlight a) Source # 
Instance details

Defined in Cornelis.Pretty