style: re-format

This commit is contained in:
2026-06-12 17:12:25 -04:00
parent a0b22453eb
commit e298b55cb7
36 changed files with 832 additions and 832 deletions
+22 -22
View File
@@ -3,41 +3,41 @@ local settings = require("lua.lib.settings")
local utils = require("lua.lib.utils")
M.confs = {
input = { touchpad = {} },
gestures = {},
input = { touchpad = {} },
gestures = {},
}
if settings["profile"] == "desktop" then
M.confs.input = table.insert(M.confs.input, { numlock_by_default = true })
M.confs.input = table.insert(M.confs.input, { numlock_by_default = true })
elseif settings["profile"] == "laptop" then
M.confs.gestures = table.insert(M.confs.gestures, { workspace_swipe_touch = true })
M.gestures = {
{
fingers = 3,
direction = "horizontal",
action = "workspace",
},
}
M.confs.gestures = table.insert(M.confs.gestures, { workspace_swipe_touch = true })
M.gestures = {
{
fingers = 3,
direction = "horizontal",
action = "workspace",
},
}
end
--M.confs.input.touchpad.natural_scroll = settings["touchpad_natural_scroll"]
M.confs = utils.tbl_recursive_merge(M.confs, {
input = {
touchpad = {
natural_scroll = settings["touchpad_natural_scroll"],
},
},
input = {
touchpad = {
natural_scroll = settings["touchpad_natural_scroll"],
},
},
})
M.confs.input.kb_layout = settings["kb_layout"]
function M.load()
hl.config(M.confs)
if M.gestures then
for _, gesture in pairs(M.gestures) do
hl.gesture(gesture)
end
end
hl.config(M.confs)
if M.gestures then
for _, gesture in pairs(M.gestures) do
hl.gesture(gesture)
end
end
end
return M