Command -package:cabal-install package:nvim-hs

Exported Command. Callable via :Name arg1 arg2.
  • Name of the command (must start with an uppercase letter)
  • Options to configure neovim's behavior for calling the command
Similarly to function, this function is used to export a command with a custom name. Note that commands must start with an upper case letter. Due to limitations on the side of (neo)vim, commands can only have one of the following five signatures, where you can replace String with ByteString or Text if you wish: Example: $(command "RememberThePrime" 'someFunction) [CmdBang] Note that the list of command options (i.e. the last argument) removes duplicate options by means of some internally convenient sorting. You should simply not define the same option twice.
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.
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.)
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.
Define an exported command. This function works exactly like command, but it generates the command name by converting the first letter to upper case.