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,9 +220,11 @@ function M.setup(opts)
|
|||
|
||||
-- normalize path options
|
||||
local normalized_extra_dev_paths
|
||||
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)
|
||||
M.options.root = Util.norm(M.options.root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue