nvim-hs-0.0.2: 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

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 :: strType

TODO replace with enum, but too lazy for now.

Instances

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

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.