fix(util): normalize paths returned by `Util.file_patterns` (#35)

Astronvim errors while loading neoconf with neovim v0.10. The issue
appears to be the same as:
https://github.com/NvChad/NvChad/issues/1832
https://github.com/neovim/neovim/issues/22698

Normalizing the paths eliminates the error, but I haven't done much
testing beyond that.
This commit is contained in:
Michael Ziminsky (Z) 2024-07-06 15:12:13 -07:00 committed by GitHub
parent eca677f2ab
commit 7c34c869e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function M.file_patterns(opts)
end end
end end
return ret return vim.tbl_map(vim.fs.normalize, ret)
end end
---@return { pattern: table<string, string>, filename: table<string, string> } ---@return { pattern: table<string, string>, filename: table<string, string> }