wip: Add for rocker
This commit is contained in:
@@ -88,6 +88,13 @@ local get_default = require('telescope.utils').get_default
|
|||||||
local resolver = {}
|
local resolver = {}
|
||||||
|
|
||||||
local _resolve_map = {
|
local _resolve_map = {
|
||||||
|
-- Booleans
|
||||||
|
[function(val) return val == false end] = function(selector, val)
|
||||||
|
return function(...)
|
||||||
|
return val
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
-- Percentages
|
-- Percentages
|
||||||
[function(val) return type(val) == 'number' and val > 0 and val <= 1 end] = function(selector, val)
|
[function(val) return type(val) == 'number' and val > 0 and val <= 1 end] = function(selector, val)
|
||||||
return function(...)
|
return function(...)
|
||||||
@@ -102,6 +109,9 @@ local _resolve_map = {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
||||||
|
-- Tables TODO:
|
||||||
|
-- ...
|
||||||
}
|
}
|
||||||
|
|
||||||
resolver.resolve_height = function(val)
|
resolver.resolve_height = function(val)
|
||||||
|
|||||||
Reference in New Issue
Block a user