From 7c34c869e680b86f533e46779e9bdd440739bc71 Mon Sep 17 00:00:00 2001 From: "Michael Ziminsky (Z)" Date: Sat, 6 Jul 2024 15:12:13 -0700 Subject: [PATCH] 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. --- lua/neoconf/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neoconf/util.lua b/lua/neoconf/util.lua index 7fb32af..d9d8953 100644 --- a/lua/neoconf/util.lua +++ b/lua/neoconf/util.lua @@ -96,7 +96,7 @@ function M.file_patterns(opts) end end - return ret + return vim.tbl_map(vim.fs.normalize, ret) end ---@return { pattern: table, filename: table }