The distant plugin comes with a vast API available in Lua. All of the public API methods are accessible through the top-level plugin object made available from requiring distant:
local plugin = require('distant')
See how the plugin is initialized and how you can verify the plugin is ready to be used.
Manage connections directly in Lua.
Access and modify settings tied to the plugin.
Explore the full power of distant through a Lua interface to its API.
Access remote-specific information tied to buffers managed by this plugin.
Directly invoke editor-specific functions.
Tap into the events exposed by the plugin for greater insight and control.
Spawn shells to remote machines directly using Lua.
Wrap commands to be executed on the remote machine, enabling easier integration with other plugins that take command strings.
Understand the version of the plugin being used from Lua.
Check out additional utility functions exposed by the plugin.