nvim-hs-0.0.7: Haskell plugin backend for neovim

Copyright(c) Sebastian Witte
LicenseApache-2.0
Maintainerwoozletoff@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Neovim.Quickfix

Description

 

Synopsis

Documentation

setqflist :: (Monoid strType, NvimObject strType) => [QuickfixListItem strType] -> QuickfixAction -> Neovim r st () Source

This is a wrapper around neovim's setqflist(). strType can be any string that you can append to (hence Monoid) that is also an instance of NvimObject. You can e.g. use the plain old String.

data QuickfixListItem strType Source

Quickfix list item. The parameter names should mostly conform to those in :h setqflist(). Some fields are merged to explicitly state mutually exclusive elements or some other behavior of the fields.

see quickfixListItem for creating a value of this type without typing too much.

Constructors

QFItem 

Fields

bufOrFile :: Either Int strType

Since the filename is only used if no buffer can be specified, this field is a merge of bufnr and filename.

lnumOrPattern :: Either Int strType

Line number or search pattern to locate the error.

col :: Maybe (Int, Bool)

A tuple of a column number and a boolean indicating which kind of indexing should be used. True means that the visual column should be used. False means to use the byte index.

nr :: Maybe Int

Error number.

text :: strType

Description of the error.

errorType :: QuickfixErrorType

Type of error.

Instances

Eq strType => Eq (QuickfixListItem strType) Source 
Show strType => Show (QuickfixListItem strType) Source 
(Monoid strType, NvimObject strType) => NvimObject (QuickfixListItem strType) Source 

quickfixListItem Source

Arguments

:: Monoid strType 
=> Either Int strType

buffer of file name

-> Either Int strType

line number or pattern

-> QuickfixListItem strType 

Create a QuickfixListItem by providing the minimal amount of arguments needed.

data QuickfixAction Source

Constructors

Append

Add items to the current list (or create a new one if none exists).

Replace

Replace current list (or create a new one if none exists).

New

Create a new list.