nvim: Rename plugins folder to modules

This commit is contained in:
Marty Oehme 2025-10-12 12:58:18 +02:00
parent 7b32a7998e
commit 77d8758ded
Signed by: Marty
GPG key ID: 4E535BC19C61886E
21 changed files with 4 additions and 3 deletions

View file

@ -32,9 +32,10 @@ end
vim.opt.rtp:prepend(lazypath)
-- ensure plugins specs exist before loading into lazy
local spec_dir = vim.fn.stdpath("config") .. "/lua/plugins"
local spec_exist = (vim.fn.isdirectory(spec_dir) ~= 0) and (#vim.fn.glob(spec_dir .. "/*.lua", nil, true) ~= 0)
local spec = spec_exist and { import = "plugins" } or {}
local spec_dir_basename = "modules"
local spec_dir_path = vim.fn.stdpath("config") .. "/lua/" .. spec_dir_basename
local spec_exist = (vim.fn.isdirectory(spec_dir_path) ~= 0) and (#vim.fn.glob(spec_dir_path .. "/*.lua", nil, true) ~= 0)
local spec = spec_exist and { import = spec_dir_basename } or {}
vim.g.lazy_events_config = {
simple = {