normalized dev.extra_paths correctly

This commit is contained in:
BirdeeHub 2024-01-06 00:02:25 -08:00
commit 6c721d878a

View file

@ -218,10 +218,15 @@ function M.setup(opts)
end end
table.insert(M.options.install.colorscheme, "habamax") table.insert(M.options.install.colorscheme, "habamax")
-- 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))
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) M.options.root = Util.norm(M.options.root)
M.options.dev.path = Util.norm(M.options.dev.path) M.options.dev.path = Util.norm(M.options.dev.path)
M.options.dev.extra_paths = Util.norm(M.options.dev.extra_paths)
M.options.performance.rtp.custom_config_dir = Util.norm(M.options.performance.rtp.custom_config_dir)
M.options.lockfile = Util.norm(M.options.lockfile) M.options.lockfile = Util.norm(M.options.lockfile)
M.options.readme.root = Util.norm(M.options.readme.root) M.options.readme.root = Util.norm(M.options.readme.root)