Skip to content

Commit

Permalink
fix(util): normalize paths returned by Util.file_patterns (#35)
Browse files Browse the repository at this point in the history
Astronvim errors while loading neoconf with neovim v0.10. The issue
appears to be the same as:
NvChad/NvChad#1832
neovim/neovim#22698

Normalizing the paths eliminates the error, but I haven't done much
testing beyond that.
  • Loading branch information
mgziminsky authored Jul 6, 2024
1 parent eca677f commit 7c34c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neoconf/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>, filename: table<string, string> }
Expand Down

0 comments on commit 7c34c86

Please sign in to comment.