Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | [email protected] |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Neovim.Plugin.Classes
Description
Synopsis
- data FunctionalityDescription
- newtype FunctionName = F Text
- newtype NeovimEventId = NeovimEventId Text
- newtype SubscriptionId = SubscriptionId Int64
- data Subscription = Subscription {
- subId :: SubscriptionId
- subEventId :: NeovimEventId
- subAction :: [Object] -> IO ()
- newtype NvimMethod = NvimMethod {}
- data Synchronous
- data CommandOption
- data CommandOptions
- data RangeSpecification
- data CommandArguments = CommandArguments {}
- getCommandOptions :: CommandOptions -> [CommandOption]
- mkCommandOptions :: [CommandOption] -> CommandOptions
- data AutocmdOptions = AutocmdOptions {
- acmdPattern :: String
- acmdNested :: Bool
- acmdGroup :: Maybe String
- class HasFunctionName a where
- name :: a -> FunctionName
- nvimMethod :: a -> NvimMethod
Documentation
data FunctionalityDescription Source #
Functionality specific functional description entries.
All fields which are directly specified in these constructors are not
optional, but can partialy be generated via the Template Haskell functions.
The last field is a data type that contains all relevant options with
sensible defaults, hence def
can be used as an argument.
Constructors
Function FunctionName Synchronous | Exported function. Callable via
|
Command FunctionName CommandOptions | Exported Command. Callable via
|
Autocmd Text FunctionName Synchronous AutocmdOptions | Exported autocommand. Will call the given function if the type and filter match. NB: Since we are registering this on the Haskell side of things, the number of accepted arguments should be 0.
|
Instances
newtype FunctionName Source #
Essentially just a string.
Instances
Generic FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
| |||||
Read FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS FunctionName # readList :: ReadS [FunctionName] # | |||||
Show FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> FunctionName -> ShowS # show :: FunctionName -> String # showList :: [FunctionName] -> ShowS # | |||||
NFData FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: FunctionName -> () # | |||||
Eq FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
Ord FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: FunctionName -> FunctionName -> Ordering # (<) :: FunctionName -> FunctionName -> Bool # (<=) :: FunctionName -> FunctionName -> Bool # (>) :: FunctionName -> FunctionName -> Bool # (>=) :: FunctionName -> FunctionName -> Bool # max :: FunctionName -> FunctionName -> FunctionName # min :: FunctionName -> FunctionName -> FunctionName # | |||||
Pretty FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep FunctionName Source # | |||||
Defined in Neovim.Plugin.Classes type Rep FunctionName = D1 ('MetaData "FunctionName" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'True) (C1 ('MetaCons "F" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype NeovimEventId Source #
Constructors
NeovimEventId Text |
Instances
Generic NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
| |||||
Read NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS NeovimEventId # readList :: ReadS [NeovimEventId] # | |||||
Show NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> NeovimEventId -> ShowS # show :: NeovimEventId -> String # showList :: [NeovimEventId] -> ShowS # | |||||
NFData NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: NeovimEventId -> () # | |||||
Eq NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Methods (==) :: NeovimEventId -> NeovimEventId -> Bool # (/=) :: NeovimEventId -> NeovimEventId -> Bool # | |||||
Ord NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: NeovimEventId -> NeovimEventId -> Ordering # (<) :: NeovimEventId -> NeovimEventId -> Bool # (<=) :: NeovimEventId -> NeovimEventId -> Bool # (>) :: NeovimEventId -> NeovimEventId -> Bool # (>=) :: NeovimEventId -> NeovimEventId -> Bool # max :: NeovimEventId -> NeovimEventId -> NeovimEventId # min :: NeovimEventId -> NeovimEventId -> NeovimEventId # | |||||
NvimObject NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes Methods toObject :: NeovimEventId -> Object Source # fromObjectUnsafe :: Object -> NeovimEventId Source # fromObject :: Object -> Either (Doc AnsiStyle) NeovimEventId Source # fromObject' :: MonadIO io => Object -> io NeovimEventId Source # | |||||
Pretty NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep NeovimEventId Source # | |||||
Defined in Neovim.Plugin.Classes type Rep NeovimEventId = D1 ('MetaData "NeovimEventId" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'True) (C1 ('MetaCons "NeovimEventId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype SubscriptionId Source #
Constructors
SubscriptionId Int64 |
Instances
Enum SubscriptionId Source # | |
Defined in Neovim.Plugin.Classes Methods succ :: SubscriptionId -> SubscriptionId # pred :: SubscriptionId -> SubscriptionId # toEnum :: Int -> SubscriptionId # fromEnum :: SubscriptionId -> Int # enumFrom :: SubscriptionId -> [SubscriptionId] # enumFromThen :: SubscriptionId -> SubscriptionId -> [SubscriptionId] # enumFromTo :: SubscriptionId -> SubscriptionId -> [SubscriptionId] # enumFromThenTo :: SubscriptionId -> SubscriptionId -> SubscriptionId -> [SubscriptionId] # | |
Read SubscriptionId Source # | |
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS SubscriptionId # readList :: ReadS [SubscriptionId] # | |
Show SubscriptionId Source # | |
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> SubscriptionId -> ShowS # show :: SubscriptionId -> String # showList :: [SubscriptionId] -> ShowS # | |
Eq SubscriptionId Source # | |
Defined in Neovim.Plugin.Classes Methods (==) :: SubscriptionId -> SubscriptionId -> Bool # (/=) :: SubscriptionId -> SubscriptionId -> Bool # | |
Ord SubscriptionId Source # | |
Defined in Neovim.Plugin.Classes Methods compare :: SubscriptionId -> SubscriptionId -> Ordering # (<) :: SubscriptionId -> SubscriptionId -> Bool # (<=) :: SubscriptionId -> SubscriptionId -> Bool # (>) :: SubscriptionId -> SubscriptionId -> Bool # (>=) :: SubscriptionId -> SubscriptionId -> Bool # max :: SubscriptionId -> SubscriptionId -> SubscriptionId # min :: SubscriptionId -> SubscriptionId -> SubscriptionId # |
data Subscription Source #
Constructors
Subscription | |
Fields
|
newtype NvimMethod Source #
Constructors
NvimMethod | |
Fields |
Instances
Generic NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
| |||||
Read NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS NvimMethod # readList :: ReadS [NvimMethod] # readPrec :: ReadPrec NvimMethod # readListPrec :: ReadPrec [NvimMethod] # | |||||
Show NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> NvimMethod -> ShowS # show :: NvimMethod -> String # showList :: [NvimMethod] -> ShowS # | |||||
NFData NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: NvimMethod -> () # | |||||
Eq NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
Ord NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: NvimMethod -> NvimMethod -> Ordering # (<) :: NvimMethod -> NvimMethod -> Bool # (<=) :: NvimMethod -> NvimMethod -> Bool # (>) :: NvimMethod -> NvimMethod -> Bool # (>=) :: NvimMethod -> NvimMethod -> Bool # max :: NvimMethod -> NvimMethod -> NvimMethod # min :: NvimMethod -> NvimMethod -> NvimMethod # | |||||
Pretty NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep NvimMethod Source # | |||||
Defined in Neovim.Plugin.Classes type Rep NvimMethod = D1 ('MetaData "NvimMethod" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'True) (C1 ('MetaCons "NvimMethod" 'PrefixI 'True) (S1 ('MetaSel ('Just "nvimMethodName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data Synchronous Source #
This option detemines how neovim should behave when calling some functionality on a remote host.
Constructors
Async | Call the functionality entirely for its side effects and do not wait for it to finish. Calling a functionality with this flag set is completely asynchronous and nothing is really expected to happen. This is why a call like this is called notification on the neovim side of things. |
Sync | Call the function and wait for its result. This is only synchronous on the neovim side. This means that the GUI will (probably) not allow any user input until a reult is received. |
Instances
IsString Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods fromString :: String -> Synchronous # | |||||
Enum Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods succ :: Synchronous -> Synchronous # pred :: Synchronous -> Synchronous # toEnum :: Int -> Synchronous # fromEnum :: Synchronous -> Int # enumFrom :: Synchronous -> [Synchronous] # enumFromThen :: Synchronous -> Synchronous -> [Synchronous] # enumFromTo :: Synchronous -> Synchronous -> [Synchronous] # enumFromThenTo :: Synchronous -> Synchronous -> Synchronous -> [Synchronous] # | |||||
Generic Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
| |||||
Read Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS Synchronous # readList :: ReadS [Synchronous] # readPrec :: ReadPrec Synchronous # readListPrec :: ReadPrec [Synchronous] # | |||||
Show Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> Synchronous -> ShowS # show :: Synchronous -> String # showList :: [Synchronous] -> ShowS # | |||||
NFData Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: Synchronous -> () # | |||||
Eq Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
Ord Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: Synchronous -> Synchronous -> Ordering # (<) :: Synchronous -> Synchronous -> Bool # (<=) :: Synchronous -> Synchronous -> Bool # (>) :: Synchronous -> Synchronous -> Bool # (>=) :: Synchronous -> Synchronous -> Bool # max :: Synchronous -> Synchronous -> Synchronous # min :: Synchronous -> Synchronous -> Synchronous # | |||||
NvimObject Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes Methods toObject :: Synchronous -> Object Source # fromObjectUnsafe :: Object -> Synchronous Source # fromObject :: Object -> Either (Doc AnsiStyle) Synchronous Source # fromObject' :: MonadIO io => Object -> io Synchronous Source # | |||||
Pretty Synchronous Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep Synchronous Source # | |||||
data CommandOption Source #
Options for commands.
Some command can also be described by using the OverloadedString extensions.
This means that you can write a literal String
inside your source file in
place for a CommandOption
value. See the documentation for each value on
how these strings should look like (Both versions are compile time checked.)
Constructors
CmdSync Synchronous | Stringliteral "sync" or "async" |
CmdRegister | Register passed to the command. Stringliteral: |
CmdNargs String | Command takes a specific amount of arguments Automatically set via template haskell functions. You really shouldn't use this option yourself unless you have to. |
CmdRange RangeSpecification | Determines how neovim passes the range. Stringliterals: "%" for |
CmdCount Word | Command handles a count. The argument defines the default count. Stringliteral: string of numbers (e.g. "132") |
CmdBang | Command handles a bang Stringliteral: "!" |
CmdComplete String | Verbatim string passed to the |
Instances
IsString CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Methods fromString :: String -> CommandOption # | |||||
Generic CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
| |||||
Read CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS CommandOption # readList :: ReadS [CommandOption] # | |||||
Show CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> CommandOption -> ShowS # show :: CommandOption -> String # showList :: [CommandOption] -> ShowS # | |||||
NFData CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: CommandOption -> () # | |||||
Eq CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Methods (==) :: CommandOption -> CommandOption -> Bool # (/=) :: CommandOption -> CommandOption -> Bool # | |||||
Ord CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: CommandOption -> CommandOption -> Ordering # (<) :: CommandOption -> CommandOption -> Bool # (<=) :: CommandOption -> CommandOption -> Bool # (>) :: CommandOption -> CommandOption -> Bool # (>=) :: CommandOption -> CommandOption -> Bool # max :: CommandOption -> CommandOption -> CommandOption # min :: CommandOption -> CommandOption -> CommandOption # | |||||
Pretty CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep CommandOption Source # | |||||
Defined in Neovim.Plugin.Classes type Rep CommandOption = D1 ('MetaData "CommandOption" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'False) ((C1 ('MetaCons "CmdSync" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Synchronous)) :+: (C1 ('MetaCons "CmdRegister" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CmdNargs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String)))) :+: ((C1 ('MetaCons "CmdRange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RangeSpecification)) :+: C1 ('MetaCons "CmdCount" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word))) :+: (C1 ('MetaCons "CmdBang" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CmdComplete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String))))) |
data CommandOptions Source #
Newtype wrapper for a list of CommandOption
. Any properly constructed
object of this type is sorted and only contains zero or one object for each
possible option.
Instances
Generic CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
Methods from :: CommandOptions -> Rep CommandOptions x # to :: Rep CommandOptions x -> CommandOptions # | |||||
Read CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS CommandOptions # readList :: ReadS [CommandOptions] # | |||||
Show CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> CommandOptions -> ShowS # show :: CommandOptions -> String # showList :: [CommandOptions] -> ShowS # | |||||
NFData CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: CommandOptions -> () # | |||||
Eq CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods (==) :: CommandOptions -> CommandOptions -> Bool # (/=) :: CommandOptions -> CommandOptions -> Bool # | |||||
Ord CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: CommandOptions -> CommandOptions -> Ordering # (<) :: CommandOptions -> CommandOptions -> Bool # (<=) :: CommandOptions -> CommandOptions -> Bool # (>) :: CommandOptions -> CommandOptions -> Bool # (>=) :: CommandOptions -> CommandOptions -> Bool # max :: CommandOptions -> CommandOptions -> CommandOptions # min :: CommandOptions -> CommandOptions -> CommandOptions # | |||||
NvimObject CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods toObject :: CommandOptions -> Object Source # fromObjectUnsafe :: Object -> CommandOptions Source # fromObject :: Object -> Either (Doc AnsiStyle) CommandOptions Source # fromObject' :: MonadIO io => Object -> io CommandOptions Source # | |||||
Pretty CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep CommandOptions Source # | |||||
Defined in Neovim.Plugin.Classes type Rep CommandOptions = D1 ('MetaData "CommandOptions" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'True) (C1 ('MetaCons "CommandOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "getCommandOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CommandOption]))) |
data RangeSpecification Source #
Specification of a range that acommand can operate on.
Constructors
CurrentLine | The line the cursor is at when the command is invoked. |
WholeFile | Let the command operate on every line of the file. |
RangeCount Int | Let the command operate on each line in the given range. |
Instances
Generic RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
Methods from :: RangeSpecification -> Rep RangeSpecification x # to :: Rep RangeSpecification x -> RangeSpecification # | |||||
Read RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS RangeSpecification # readList :: ReadS [RangeSpecification] # | |||||
Show RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> RangeSpecification -> ShowS # show :: RangeSpecification -> String # showList :: [RangeSpecification] -> ShowS # | |||||
NFData RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: RangeSpecification -> () # | |||||
Eq RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Methods (==) :: RangeSpecification -> RangeSpecification -> Bool # (/=) :: RangeSpecification -> RangeSpecification -> Bool # | |||||
Ord RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: RangeSpecification -> RangeSpecification -> Ordering # (<) :: RangeSpecification -> RangeSpecification -> Bool # (<=) :: RangeSpecification -> RangeSpecification -> Bool # (>) :: RangeSpecification -> RangeSpecification -> Bool # (>=) :: RangeSpecification -> RangeSpecification -> Bool # max :: RangeSpecification -> RangeSpecification -> RangeSpecification # min :: RangeSpecification -> RangeSpecification -> RangeSpecification # | |||||
NvimObject RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes Methods toObject :: RangeSpecification -> Object Source # fromObjectUnsafe :: Object -> RangeSpecification Source # fromObject :: Object -> Either (Doc AnsiStyle) RangeSpecification Source # fromObject' :: MonadIO io => Object -> io RangeSpecification Source # | |||||
Pretty RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep RangeSpecification Source # | |||||
Defined in Neovim.Plugin.Classes type Rep RangeSpecification = D1 ('MetaData "RangeSpecification" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'False) (C1 ('MetaCons "CurrentLine" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WholeFile" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RangeCount" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))) |
data CommandArguments Source #
You can use this type as the first argument for a function which is intended to be exported as a command. It holds information about the special attributes a command can take.
Constructors
CommandArguments | |
Fields
|
Instances
Generic CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
Methods from :: CommandArguments -> Rep CommandArguments x # to :: Rep CommandArguments x -> CommandArguments # | |||||
Read CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS CommandArguments # readList :: ReadS [CommandArguments] # | |||||
Show CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> CommandArguments -> ShowS # show :: CommandArguments -> String # showList :: [CommandArguments] -> ShowS # | |||||
Default CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods def :: CommandArguments # | |||||
NFData CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: CommandArguments -> () # | |||||
Eq CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods (==) :: CommandArguments -> CommandArguments -> Bool # (/=) :: CommandArguments -> CommandArguments -> Bool # | |||||
Ord CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: CommandArguments -> CommandArguments -> Ordering # (<) :: CommandArguments -> CommandArguments -> Bool # (<=) :: CommandArguments -> CommandArguments -> Bool # (>) :: CommandArguments -> CommandArguments -> Bool # (>=) :: CommandArguments -> CommandArguments -> Bool # max :: CommandArguments -> CommandArguments -> CommandArguments # min :: CommandArguments -> CommandArguments -> CommandArguments # | |||||
NvimObject CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes Methods toObject :: CommandArguments -> Object Source # fromObjectUnsafe :: Object -> CommandArguments Source # fromObject :: Object -> Either (Doc AnsiStyle) CommandArguments Source # fromObject' :: MonadIO io => Object -> io CommandArguments Source # | |||||
Pretty CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep CommandArguments Source # | |||||
Defined in Neovim.Plugin.Classes type Rep CommandArguments = D1 ('MetaData "CommandArguments" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'False) (C1 ('MetaCons "CommandArguments" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bang") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "range") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Int, Int)))) :*: (S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "register") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe String))))) |
mkCommandOptions :: [CommandOption] -> CommandOptions Source #
Smart constructor for CommandOptions
. This sorts the command options and
removes duplicate entries for semantically the same thing. Note that the
smallest option stays for whatever ordering is defined. It is best to simply
not define the same thing multiple times.
data AutocmdOptions Source #
Options that can be used to register an autocmd. See :h :autocmd
or any
referenced neovim help-page from the fields of this data type.
Constructors
AutocmdOptions | |
Fields
|
Instances
Generic AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Associated Types
Methods from :: AutocmdOptions -> Rep AutocmdOptions x # to :: Rep AutocmdOptions x -> AutocmdOptions # | |||||
Read AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods readsPrec :: Int -> ReadS AutocmdOptions # readList :: ReadS [AutocmdOptions] # | |||||
Show AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods showsPrec :: Int -> AutocmdOptions -> ShowS # show :: AutocmdOptions -> String # showList :: [AutocmdOptions] -> ShowS # | |||||
Default AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods def :: AutocmdOptions # | |||||
NFData AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods rnf :: AutocmdOptions -> () # | |||||
Eq AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods (==) :: AutocmdOptions -> AutocmdOptions -> Bool # (/=) :: AutocmdOptions -> AutocmdOptions -> Bool # | |||||
Ord AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods compare :: AutocmdOptions -> AutocmdOptions -> Ordering # (<) :: AutocmdOptions -> AutocmdOptions -> Bool # (<=) :: AutocmdOptions -> AutocmdOptions -> Bool # (>) :: AutocmdOptions -> AutocmdOptions -> Bool # (>=) :: AutocmdOptions -> AutocmdOptions -> Bool # max :: AutocmdOptions -> AutocmdOptions -> AutocmdOptions # min :: AutocmdOptions -> AutocmdOptions -> AutocmdOptions # | |||||
NvimObject AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes Methods toObject :: AutocmdOptions -> Object Source # fromObjectUnsafe :: Object -> AutocmdOptions Source # fromObject :: Object -> Either (Doc AnsiStyle) AutocmdOptions Source # fromObject' :: MonadIO io => Object -> io AutocmdOptions Source # | |||||
Pretty AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes | |||||
type Rep AutocmdOptions Source # | |||||
Defined in Neovim.Plugin.Classes type Rep AutocmdOptions = D1 ('MetaData "AutocmdOptions" "Neovim.Plugin.Classes" "nvim-hs-2.3.2.4-EX6m0HvAwMIGUaFSbOCyoL" 'False) (C1 ('MetaCons "AutocmdOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "acmdPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String) :*: (S1 ('MetaSel ('Just "acmdNested") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "acmdGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe String))))) |
class HasFunctionName a where Source #
Conveniennce class to extract a name from some value.
Instances
HasFunctionName FunctionalityDescription Source # | |
Defined in Neovim.Plugin.Classes Methods name :: FunctionalityDescription -> FunctionName Source # nvimMethod :: FunctionalityDescription -> NvimMethod Source # | |
HasFunctionName (ExportedFunctionality env) Source # | |
Defined in Neovim.Plugin.Internal Methods name :: ExportedFunctionality env -> FunctionName Source # nvimMethod :: ExportedFunctionality env -> NvimMethod Source # |