style: re-format
This commit is contained in:
+16
-16
@@ -1,22 +1,22 @@
|
||||
local M = {}
|
||||
|
||||
M.curves = {
|
||||
{
|
||||
name = "easeInOutExpo",
|
||||
curve = {
|
||||
type = "bezier",
|
||||
points = { { 0.87, 0 }, { 0.13, 1 } },
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "rubber",
|
||||
curve = {
|
||||
type = "spring",
|
||||
mass = 1,
|
||||
stiffness = 50,
|
||||
dampening = 8,
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "easeInOutExpo",
|
||||
curve = {
|
||||
type = "bezier",
|
||||
points = { { 0.87, 0 }, { 0.13, 1 } },
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "rubber",
|
||||
curve = {
|
||||
type = "spring",
|
||||
mass = 1,
|
||||
stiffness = 50,
|
||||
dampening = 8,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
||||
|
||||
+19
-19
@@ -2,29 +2,29 @@ local curves = require("lua.animations.curves")
|
||||
local M = {}
|
||||
|
||||
M.animations = {
|
||||
{
|
||||
leaf = "windows",
|
||||
enabled = true,
|
||||
speed = 1,
|
||||
spring = "rubber",
|
||||
style = "slide",
|
||||
},
|
||||
{
|
||||
leaf = "workspaces",
|
||||
enabled = true,
|
||||
speed = 8,
|
||||
spring = "rubber",
|
||||
},
|
||||
{
|
||||
leaf = "windows",
|
||||
enabled = true,
|
||||
speed = 1,
|
||||
spring = "rubber",
|
||||
style = "slide",
|
||||
},
|
||||
{
|
||||
leaf = "workspaces",
|
||||
enabled = true,
|
||||
speed = 8,
|
||||
spring = "rubber",
|
||||
},
|
||||
}
|
||||
|
||||
function M.load()
|
||||
for _, curve_item in pairs(curves.curves) do
|
||||
hl.curve(curve_item.name, curve_item.curve)
|
||||
end
|
||||
for _, curve_item in pairs(curves.curves) do
|
||||
hl.curve(curve_item.name, curve_item.curve)
|
||||
end
|
||||
|
||||
for _, animation in pairs(M.animations) do
|
||||
hl.animation(animation)
|
||||
end
|
||||
for _, animation in pairs(M.animations) do
|
||||
hl.animation(animation)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user