nvim: Rename plugins folder to modules
This commit is contained in:
parent
7b32a7998e
commit
77d8758ded
21 changed files with 4 additions and 3 deletions
|
|
@ -32,9 +32,10 @@ end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
-- ensure plugins specs exist before loading into lazy
|
-- ensure plugins specs exist before loading into lazy
|
||||||
local spec_dir = vim.fn.stdpath("config") .. "/lua/plugins"
|
local spec_dir_basename = "modules"
|
||||||
local spec_exist = (vim.fn.isdirectory(spec_dir) ~= 0) and (#vim.fn.glob(spec_dir .. "/*.lua", nil, true) ~= 0)
|
local spec_dir_path = vim.fn.stdpath("config") .. "/lua/" .. spec_dir_basename
|
||||||
local spec = spec_exist and { import = "plugins" } or {}
|
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 = {
|
vim.g.lazy_events_config = {
|
||||||
simple = {
|
simple = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue