wip: more work on config resolution

This commit is contained in:
TJ DeVries
2020-09-17 21:16:30 -04:00
parent 8622d1c32d
commit c043f90de0

View File

@@ -22,9 +22,11 @@ Result of `resolve` should be a table with:
}, },
prompt = { prompt = {
get_width = function(self, max_columns, max_lines) return 1end get_width = function(self, max_columns, max_lines) end
get_height = function(self, max_columns, max_lines) end get_height = function(self, max_columns, max_lines) end
}, },
total ?
} }
!!NOT IMPLEMENTED YET!! !!NOT IMPLEMENTED YET!!
@@ -111,7 +113,17 @@ local _resolve_map = {
-- Tables TODO: -- Tables TODO:
-- ... -- ... {70, max}
-- function:
-- Function must have same signature as get_window_layout
-- function(self, max_columns, max_lines): number
--
-- Resulting number is used for this configuration value.
[function(val) return type(val) == 'function' end] = function(selector, val)
return val
end,
} }
resolver.resolve_height = function(val) resolver.resolve_height = function(val)