aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/startup/utils.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua
index b8b7a82..acb91bd 100644
--- a/lua/startup/utils.lua
+++ b/lua/startup/utils.lua
@@ -268,13 +268,17 @@ function U.validate_settings(options)
margin = { options.margin, "number" },
command = { options.command, "string" },
content = {options.content,
- function(content)
- if options.type =="text" and (type(content)== "table" or type(content == "function")) then
- return true
- elseif options.type == "mapping" and type(content) == "table" then
- return true
- end
- end},
+ function(content)
+ if options.type =="text" and (type(content)== "table" or type(content) == "function") then
+ return true
+ elseif options.type == "mapping" and type(content) == "table" then
+ return true
+ elseif options.type == "oldfiles" then
+ return true
+ end
+ return false
+ end,
+ "table for type=mapping and table or function for type=text"},
default_color = { options.default_color, "string" },
highlight = { options.highlight, "string" },
oldfiles_amount = {