mirror of https://github.com/folke/neoconf.nvim
fix: normalize paths. Fixes #33
This commit is contained in:
parent
3d5371d20b
commit
e0835bdc1a
|
|
@ -100,6 +100,7 @@ function M.get_files(opts)
|
||||||
-- return files that exist or the default files.
|
-- return files that exist or the default files.
|
||||||
-- never return imported file patterms that don't exist
|
-- never return imported file patterms that don't exist
|
||||||
return vim.tbl_filter(function(item)
|
return vim.tbl_filter(function(item)
|
||||||
|
item.file = vim.fs.normalize(item.file)
|
||||||
if Util.exists(item.file) then
|
if Util.exists(item.file) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue