From f0a2108ed51547793c758d9318bad94f242b22e5 Mon Sep 17 00:00:00 2001 From: orip Date: Thu, 11 Jun 2026 18:55:49 +0300 Subject: [PATCH] Follow symlinks in the custom plugins loader fixes: #2087 --- lua/custom/plugins/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index c05db46..01e9172 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -5,8 +5,8 @@ -- Iterate over all Lua files in the plugins directory and load them local plugins_dir = vim.fs.joinpath(vim.fn.stdpath 'config', 'lua', 'custom', 'plugins') -for file_name, type in vim.fs.dir(plugins_dir) do - if type == 'file' and file_name:match '%.lua$' and file_name ~= 'init.lua' then +for file_name, type in vim.fs.dir(plugins_dir, { follow = true }) do + if (type == 'file' or type == 'link') and file_name:match '%.lua$' and file_name ~= 'init.lua' then local module = file_name:gsub('%.lua$', '') require('custom.plugins.' .. module) end