fix #1832
This commit is contained in:
parent
bb87d70fd6
commit
a5833730d7
1 changed files with 1 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue