This commit is contained in:
Lucario387 2023-03-17 23:41:19 +09:00 committed by Sidhanth Rathod
parent bb87d70fd6
commit a5833730d7

View file

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