Buffer
All settings found under the buffer
key.
local plugin = require('distant')
plugin:setup({
buffer = {}
})
buffer.watch.enabled
Indicates if file watching is enabled. When true
, each file that is
opened by distant will be watched for changes.
Boolean representing watch logic being enabled. [default: true]
Example
{
buffer = {
watch = {
enabled = true
}
}
}
buffer.watch.retry_timeout
Amount of time between attempts to retry a watch request for a buffer when the path represented by the buffer does not exist.
Integer representing time in milliseconds. Set to 0 to disable. [default: 5000]
Example
{
buffer = {
watch = {
retry_timeout = 5000
}
}
}