From 8ba64ff369dea8adb63ea7d83a0ed08f13876f18 Mon Sep 17 00:00:00 2001 From: siduck Date: Thu, 15 Jun 2023 10:11:43 +0530 Subject: [PATCH] custom config reload: support symlinks https://github.com/NvChad/base46/issues/177 huge thanks to @lucario387 for helping me --- lua/core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/init.lua b/lua/core/init.lua index 073a6cc..13be788 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -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", {}),