ref(nvim): move plugins

This commit is contained in:
thek4n 2024-04-18 09:22:18 +03:00
parent fa21763215
commit ac7a0df836
23 changed files with 1 additions and 15 deletions

View File

@ -16,21 +16,7 @@ install_lazy_if_not_installed(lazypath)
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
local plugins = {}
local modules = vim.split(vim.fn.glob(vim.fn.stdpath("config") .. '/lua/*/plugins/*lua'), '\n')
local splitted_path
local module_name
for _, module_path in pairs(modules) do
splitted_path = vim.split(module_path, '/')
module_name = splitted_path[#splitted_path]:gsub(".lua", "")
table.insert(plugins, require('base.plugins.' .. module_name))
end
require("lazy").setup( require("lazy").setup(
plugins, "plugins",
{ lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json" } { lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json" }
) )