Lua
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')
-
Initialization
See how the plugin is initialized and how you can verify the plugin is ready to be used.
-
Connection Management
Manage connections directly in Lua.
-
Settings
Access and modify settings tied to the plugin.
-
API
Explore the full power of distant through a Lua interface to its API.
-
Buffers
Access remote-specific information tied to buffers managed by this plugin.
-
Editor
Directly invoke editor-specific functions.
-
Events
Tap into the events exposed by the plugin for greater insight and control.
-
Shells
Spawn shells to remote machines directly using Lua.
-
Wrapping Commands
Wrap commands to be executed on the remote machine, enabling easier integration with other plugins that take command strings.
-
Version
Understand the version of the plugin being used from Lua.
-
Utilities
Check out additional utility functions exposed by the plugin.