This commit is contained in:
Lucario387 2023-03-17 23:41:19 +09:00 committed by Sidhanth Rathod
parent bb87d70fd6
commit a5833730d7
1 changed files with 1 additions and 9 deletions

View File

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