custom config reload: support symlinks https://github.com/NvChad/base46/issues/177

huge thanks to @lucario387 for helping me
This commit is contained in:
siduck 2023-06-15 10:11:43 +05:30
parent e3bb39106e
commit 8ba64ff369
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ autocmd("FileType", {
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = vim.tbl_map(
vim.fs.normalize,
vim.fn.glob(vim.fn.stdpath "config" .. "/lua/custom/**/*.lua", true, true, true)
vim.fn.glob(vim.loop.fs_realpath(vim.fn.stdpath "config" .. "/lua/custom/**/*.lua"), true, true, true)
),
group = vim.api.nvim_create_augroup("ReloadNvChad", {}),