Local plugin

This commit is contained in:
Kontrol 2026-06-12 02:09:45 -03:00
parent f2115e20e0
commit a232e1641d
1 changed files with 7 additions and 2 deletions

View File

@ -2,5 +2,10 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}
local plugins_dir = vim.fs.joinpath(vim.fn.stdpath 'config', 'lua', 'custom', 'plugins')
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
end