38 lines
548 B
Lua
38 lines
548 B
Lua
G = require('G')
|
|
|
|
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",
|
|
"http://git.qqnewbie.top/newbieQQ/lazy.nvim.git",
|
|
"--branch=stable",
|
|
lazypath,
|
|
})
|
|
|
|
G.fn.system({
|
|
"git",
|
|
"config",
|
|
"--global",
|
|
"credential.helper",
|
|
"store",
|
|
})
|
|
|
|
end
|
|
|
|
G.opt.rtp:prepend(lazypath)
|
|
|
|
if G.g.vscode then
|
|
require('vscode')
|
|
else
|
|
require("keymap")
|
|
require("options")
|
|
require("lazy").setup(require('plugs'))
|
|
end
|
|
|
|
|
|
|