NvimPlugin

Host a D plugin, by template instanciating a Struct on Nvim. The main thread (NvimClient) provides a socket to call Nvim API functions, and there's a second thread, which is exclusively used for exchanging call messages between the Plugin functions, commands, and Nvim.

Constructors

this
this(string pluginBinPath, string outManifestFilePath)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()

Release resources.

genManifest
void genManifest(string binExecutable, string outputFile, string autoCmdPattern)

Generate plugin manifest, the plugin hosted name is the class name lowered case. The binary path of the plugin application should be in your path. autoCmdPattern is used for registring an auto command for this plugin, by default, it doesn't restrict any pattern at all. As soon as the plugin is registered, all the functions and commands will be lazy loaded, and the binary will be executed as soon as your make a first call from Nvim.

keepRunning
void keepRunning()

Used for keeping the main and callback daemonized thread open. You should only call keepRunning if you don't have an inifinite loop in your void main(), for example:

Variables

nvim
auto nvim;
Undocumented in source.
stc
Struct stc;
Undocumented in source.

Meta