A very simple nvim module to allow me to swap between file systems without changing configs.
local pathjoin = require("pathjoin").join
path = pathjoin(vim.fn.stdpath("data"), "Mason", "lua")
print(path)I setup using Lazy, if you want to try other package managers and find bugs, let me know and I'll try to reconcile these.
{
dependencies = {
-- system agnostic path joining.
"mathematicalninga/pathjoin.nvim",
},
}