aboutsummaryrefslogtreecommitdiff
path: root/common/home/mosder/.config/nvim/lua/custom/plugins/init.lua
blob: c05db465ea51a34622d306263336067dd99134c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- You can add your own plugins here or in other files in this directory!
--  I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information

-- 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
    local module = file_name:gsub('%.lua$', '')
    require('custom.plugins.' .. module)
  end
end