fix: wildcard pattern usage in fs_realpath
(#2152)
This commit is contained in:
parent
10b668d98a
commit
83aac1ecc0
1 changed files with 4 additions and 5 deletions
|
@ -72,11 +72,10 @@ autocmd("FileType", {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- reload some chadrc options on-save
|
-- reload some chadrc options on-save
|
||||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
autocmd("BufWritePost", {
|
||||||
pattern = vim.tbl_map(
|
pattern = vim.tbl_map(function(path)
|
||||||
vim.fs.normalize,
|
return vim.fs.normalize(vim.loop.fs_realpath(path))
|
||||||
vim.fn.glob(vim.loop.fs_realpath(vim.fn.stdpath "config" .. "/lua/custom/**/*.lua"), true, true, true)
|
end, vim.fn.glob(vim.fn.stdpath "config" .. "/lua/custom/**/*.lua", true, true, true)),
|
||||||
),
|
|
||||||
group = vim.api.nvim_create_augroup("ReloadNvChad", {}),
|
group = vim.api.nvim_create_augroup("ReloadNvChad", {}),
|
||||||
|
|
||||||
callback = function(opts)
|
callback = function(opts)
|
||||||
|
|
Loading…
Reference in a new issue