summaryrefslogtreecommitdiff
path: root/lua/telescope
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2023-01-22 09:14:24 +0100
committerSimon Hauser <Simon-Hauser@outlook.de>2023-01-22 09:14:24 +0100
commit0e56ea028d9862f280df17b3fafc9475a8f41f6e (patch)
tree04c555a082766457435f12112978763fc802b14e /lua/telescope
parent2f32775405f6706348b71d0bb8a15a22852a61e4 (diff)
chore: fix stylua ci
Diffstat (limited to 'lua/telescope')
-rw-r--r--lua/telescope/config/resolve.lua28
1 files changed, 16 insertions, 12 deletions
diff --git a/lua/telescope/config/resolve.lua b/lua/telescope/config/resolve.lua
index 9b951d3..f677949 100644
--- a/lua/telescope/config/resolve.lua
+++ b/lua/telescope/config/resolve.lua
@@ -140,23 +140,27 @@ end
_resolve_map[function(val)
return type(val) == "table" and val["max"] ~= nil and val[1] ~= nil and val[1] >= 0 and val[1] < 1
-end] =
- function(selector, val)
- return function(...)
- local selected = select(selector, ...)
- return math.min(math.floor(val[1] * selected), val["max"])
- end
+end] = function(
+ selector,
+ val
+)
+ return function(...)
+ local selected = select(selector, ...)
+ return math.min(math.floor(val[1] * selected), val["max"])
end
+end
_resolve_map[function(val)
return type(val) == "table" and val["min"] ~= nil and val[1] ~= nil and val[1] >= 0 and val[1] < 1
-end] =
- function(selector, val)
- return function(...)
- local selected = select(selector, ...)
- return math.max(math.floor(val[1] * selected), val["min"])
- end
+end] = function(
+ selector,
+ val
+)
+ return function(...)
+ local selected = select(selector, ...)
+ return math.max(math.floor(val[1] * selected), val["min"])
end
+end
-- Add padding option
_resolve_map[function(val)