nvim-hs-2.3.2.0: Haskell plugin backend for neovim
Copyright(c) Sebastian Witte
LicenseApache-2.0
Maintainerwoozletoff@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Neovim.Main

Description

 
Synopsis

Documentation

data CommandLineOptions Source #

Instances

Instances details
Default CommandLineOptions Source # 
Instance details

Defined in Neovim.Main

neovim :: NeovimConfig -> IO () Source #

This is essentially the main function for nvim-hs, at least if you want to use Config.Dyre for the configuration.

type TransitionHandler a = [Async ()] -> Config RPCConfig -> IO a Source #

A TransitionHandler function receives the ThreadIds of all running threads which have been started by the plugin provider as well as the Config with the custom field set to RPCConfig. These information can be used to properly clean up a session and then do something else. The transition handler is first called after the plugin provider has started.

realMain Source #

Arguments

:: TransitionHandler a 
-> NeovimConfig 
-> IO () 

This main functions can be used to create a custom executable without using the Config.Dyre library while still using the nvim-hs specific configuration facilities.

runPluginProvider Source #

Arguments

:: CommandLineOptions

See nvim-hs executables --help function or optParser

-> Maybe NeovimConfig 
-> TransitionHandler a 
-> IO a 

Generic main function. Most arguments are optional or have sane defaults.