26 lines
571 B
Lua
26 lines
571 B
Lua
local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not G.loop.fs_stat(lazypath) then
|
|
G.fn.system({
|
|
"git",
|
|
"clone",
|
|
"--filter=blob:none",
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
"--branch=stable", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
|
|
G.opt.rtp:prepend(lazypath)
|
|
|
|
local normalplugs = require('normal.plug')
|
|
local vscodeplugs = require('vscode.plug')
|
|
local neovimplugs = require('neovim.plug')
|
|
|
|
if G.g.vscode then
|
|
plugs = {vscodeplugs, normalplugs}
|
|
else
|
|
plugs = {neovimplugs, normalplugs}
|
|
end
|
|
|
|
require("lazy").setup(plugs)
|