aboutsummaryrefslogtreecommitdiff
path: root/plugins/motiontrail.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2021-07-13 10:47:39 -0400
committerAdam Harrison <adamdharrison@gmail.com>2021-08-17 09:52:24 -0400
commit466798679e7a2889622a491c776530c06668ca9f (patch)
treec0ebb8bdc0cc940f7cce465899a126f0f79a04ba /plugins/motiontrail.lua
parentfb647f8f0d972e85ac323b12eb65edf9c56b48cb (diff)
downloadlite-xl-plugins-466798679e7a2889622a491c776530c06668ca9f.tar.gz
lite-xl-plugins-466798679e7a2889622a491c776530c06668ca9f.zip
Namespaced plugin configs.
Diffstat (limited to 'plugins/motiontrail.lua')
-rw-r--r--plugins/motiontrail.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/motiontrail.lua b/plugins/motiontrail.lua
index 9bbca86..f5f3a90 100644
--- a/plugins/motiontrail.lua
+++ b/plugins/motiontrail.lua
@@ -4,7 +4,7 @@ local config = require "core.config"
local style = require "core.style"
local DocView = require "core.docview"
-config.motiontrail_steps = 50
+config.plugins.motiontrail = { steps = 50 }
local function lerp(a, b, t)
@@ -32,7 +32,7 @@ function DocView:draw(...)
if last_view == self and (x ~= last_x or y ~= last_y) then
local lx = x
- for i = 0, 1, 1 / config.motiontrail_steps do
+ for i = 0, 1, 1 / config.plugins.motiontrail.steps do
local ix = lerp(x, last_x, i)
local iy = lerp(y, last_y, i)
local iw = math.max(w, math.ceil(math.abs(ix - lx)))