mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
cleaned up dev.extra_paths normalization
This commit is contained in:
parent
c137516600
commit
b8cd0f41b0
1 changed files with 2 additions and 4 deletions
|
@ -219,15 +219,13 @@ function M.setup(opts)
|
|||
table.insert(M.options.install.colorscheme, "habamax")
|
||||
|
||||
-- normalize path options
|
||||
local normalized_extra_dev_paths = {}
|
||||
if type(M.options.dev.extra_paths) == "table" then
|
||||
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
|
||||
else
|
||||
normalized_extra_dev_paths = M.options.dev.extra_paths
|
||||
M.options.dev.extra_paths = normalized_extra_dev_paths
|
||||
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.dev.path = Util.norm(M.options.dev.path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue