add variable for path seperators

This commit is contained in:
siduck 2023-03-17 20:58:22 +05:30
parent a5833730d7
commit 9dcaefd73f

View file

@ -72,6 +72,8 @@ autocmd("FileType", {
}) })
-- reload some chadrc options on-save -- reload some chadrc options on-save
local sep = vim.loop.os_uname().sysname:find "windows" and "\\" or "/"
vim.api.nvim_create_autocmd("BufWritePost", { vim.api.nvim_create_autocmd("BufWritePost", {
pattern = vim.fn.glob( pattern = vim.fn.glob(
vim.fs.normalize(vim.fn.stdpath("config") .. "/lua/custom/**/*.lua"), vim.fs.normalize(vim.fn.stdpath("config") .. "/lua/custom/**/*.lua"),