1 -------------------------------------------------------------------------------
2 -- Configuration for board
3 -------------------------------------------------------------------------------
4 local Configuration = {}
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
12 default_keybinds = true, -- Whether or not to set the default keybinds
15 -- Recursively extends a table with another
16 local function extend(target, extender)
17 for key, value in pairs(extender) do
18 if type(target[key]) == 'table' and type(value) == 'table' then
19 extend(target[key], value)
26 -------------------------------------------------------------------------------
28 -------------------------------------------------------------------------------
30 Configuration.configuration = {}
31 extend(Configuration.configuration, defaults)
33 --- Extends configuration with another configuration
34 function Configuration.configure(configuration)
35 configuration = configuration or {}
36 extend(Configuration.configuration, configuration)