nvim-hs-contrib-0.0.6: Haskell plugin backend for neovim

PortabilityGHC
Stabilityexperimental
Maintainerwoozletoff@gmail.com
Safe HaskellNone

Neovim.User.Choice

Description

 

Synopsis

Documentation

oneOf :: Pretty a => [a] -> Neovim r st (Maybe a)Source

Call inputlist() on the neovim side and ask the user for a choice. This function returns Nothing if the user input was invalid or Just the chosen element. The elements are rendered via Pretty.

askForIndex :: [Object] -> Neovim r st (Maybe Int)Source

Ask user for a choice and Maybe return the index of that choice (1-based).

oneOfS :: Show a => [a] -> Neovim r st (Maybe a)Source

Same as oneOf only that a is constrained by Show insted of Pretty.

yesOrNoSource

Arguments

:: String

Question to the user

-> Neovim r st Bool 

Open inputdialogs inside neovim until the user has successfully typed any prefix of yes or no or alternatively aborted the dialog. Defaults to yes for the empty input.