diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2021-07-13 10:47:39 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2021-08-17 09:52:24 -0400 |
commit | 466798679e7a2889622a491c776530c06668ca9f (patch) | |
tree | c0ebb8bdc0cc940f7cce465899a126f0f79a04ba /plugins/motiontrail.lua | |
parent | fb647f8f0d972e85ac323b12eb65edf9c56b48cb (diff) | |
download | lite-xl-plugins-466798679e7a2889622a491c776530c06668ca9f.tar.gz lite-xl-plugins-466798679e7a2889622a491c776530c06668ca9f.zip |
Namespaced plugin configs.
Diffstat (limited to 'plugins/motiontrail.lua')
-rw-r--r-- | plugins/motiontrail.lua | 4 |
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))) |