mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
made sure it checks if dev.extra_paths is a table before iterating over it
This commit is contained in:
parent
6c721d878a
commit
1d08c7a284
1 changed files with 4 additions and 2 deletions
|
@ -220,8 +220,10 @@ function M.setup(opts)
|
||||||
|
|
||||||
-- normalize path options
|
-- normalize path options
|
||||||
local normalized_extra_dev_paths
|
local normalized_extra_dev_paths
|
||||||
for k, path in ipairs(M.options.dev.extra_paths) do
|
if type(M.options.dev.extra_paths) == "table" then
|
||||||
table.insert(normalized_extra_dev_paths, k, Util.norm(path))
|
for k, path in ipairs(M.options.dev.extra_paths) do
|
||||||
|
table.insert(normalized_extra_dev_paths, k, Util.norm(path))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
M.options.dev.extra_paths = normalized_extra_dev_paths
|
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)
|
M.options.performance.rtp.custom_config_dir = Util.norm(M.options.performance.rtp.custom_config_dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue