diff options
author | max397574 <[email protected]> | 2021-10-31 12:39:45 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-10-31 12:39:45 +0100 |
commit | 7f8ff1220e5b9f440cc0459a261625e456348656 (patch) | |
tree | a9b927acff71b83a39ae34bd23b505e7460f563a /lua/startup/utils.lua | |
parent | a7de92fea82ea9dcd24af435b9b56c652fd36362 (diff) |
fix(validate): 🐛don't check content if type=oldfiles
Diffstat (limited to 'lua/startup/utils.lua')
-rw-r--r-- | lua/startup/utils.lua | 18 |
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 = { |