| Copyright | (c) Sebastian Witte |
|---|---|
| License | Apache-2.0 |
| Maintainer | woozletoff@gmail.com |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
Neovim.Quickfix
Description
- setqflist :: (Monoid strType, NvimObject strType) => [QuickfixListItem strType] -> QuickfixAction -> Neovim r st ()
- data QuickfixListItem strType = QFItem {
- bufOrFile :: Either Int strType
- lnumOrPattern :: Either Int strType
- col :: Maybe (Int, Bool)
- nr :: Maybe Int
- text :: strType
- errorType :: QuickfixErrorType
- data QuickfixErrorType
- quickfixListItem :: Monoid strType => Either Int strType -> Either Int strType -> QuickfixListItem strType
- data QuickfixAction
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
| |
Instances
| Eq strType => Eq (QuickfixListItem strType) Source | |
| Show strType => Show (QuickfixListItem strType) Source | |
| (Monoid strType, NvimObject strType) => NvimObject (QuickfixListItem strType) Source |
data QuickfixErrorType Source
Instances
| Bounded QuickfixErrorType Source | |
| Enum QuickfixErrorType Source | |
| Eq QuickfixErrorType Source | |
| Ord QuickfixErrorType Source | |
| Read QuickfixErrorType Source | |
| Show QuickfixErrorType Source | |
| NvimObject QuickfixErrorType 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. |
Instances
| Bounded QuickfixAction Source | |
| Enum QuickfixAction Source | |
| Eq QuickfixAction Source | |
| Ord QuickfixAction Source | |
| Show QuickfixAction Source | |
| NvimObject QuickfixAction Source |