From 1d08c7a284dd576ba9c55a0dd1e5dbf8806a8805 Mon Sep 17 00:00:00 2001 From: BirdeeHub Date: Sat, 6 Jan 2024 00:14:54 -0800 Subject: [PATCH] made sure it checks if dev.extra_paths is a table before iterating over it --- lua/lazy/core/config.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index c0f10ee..02d6dbb 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -220,8 +220,10 @@ function M.setup(opts) -- normalize path options local normalized_extra_dev_paths - for k, path in ipairs(M.options.dev.extra_paths) do - table.insert(normalized_extra_dev_paths, k, Util.norm(path)) + if type(M.options.dev.extra_paths) == "table" then + for k, path in ipairs(M.options.dev.extra_paths) do + table.insert(normalized_extra_dev_paths, k, Util.norm(path)) + end end M.options.dev.extra_paths = normalized_extra_dev_paths M.options.performance.rtp.custom_config_dir = Util.norm(M.options.performance.rtp.custom_config_dir)