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

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

Neovim.User.Choice

Description

 
Synopsis

Documentation

oneOf :: [String] -> Neovim env (Maybe String) 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 env (Maybe Int) Source #

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

oneOfS :: Show a => [a] -> Neovim env (Maybe a) Source #

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

yesOrNo Source #

Arguments

:: String

Question to the user

-> Neovim env 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.