2023-10-02 22:05:38 +08:00
|
|
|
G = require('G')
|
2023-10-01 00:45:00 +08:00
|
|
|
|
2023-10-07 10:49:13 +08:00
|
|
|
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",
|
2023-10-09 16:14:40 +08:00
|
|
|
-- latest stable release
|
|
|
|
"--branch=stable",
|
2023-10-07 10:49:13 +08:00
|
|
|
lazypath,
|
|
|
|
})
|
|
|
|
|
|
|
|
G.fn.system({
|
|
|
|
"git",
|
|
|
|
"config",
|
|
|
|
"--global",
|
|
|
|
"credential.helper",
|
|
|
|
"store",
|
|
|
|
})
|
|
|
|
|
|
|
|
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
|
2023-10-08 22:40:40 +08:00
|
|
|
normalplugs = {vscodeplugs, normalplugs}
|
2023-10-07 10:49:13 +08:00
|
|
|
else
|
2023-10-08 22:40:40 +08:00
|
|
|
normalplugs = {neovimplugs, normalplugs}
|
2023-10-07 10:49:13 +08:00
|
|
|
end
|
|
|
|
|
2023-10-08 22:40:40 +08:00
|
|
|
require("lazy").setup(normalplugs)
|
2023-10-07 10:49:13 +08:00
|
|
|
|
2023-10-02 22:05:38 +08:00
|
|
|
if G.g.vscode then
|
2023-10-01 09:21:32 +08:00
|
|
|
require('vscode.vscode')
|
2023-10-08 22:40:40 +08:00
|
|
|
else
|
2023-10-01 00:45:00 +08:00
|
|
|
require('neovim.neovim')
|
|
|
|
end
|
|
|
|
|
2023-10-15 22:30:52 +08:00
|
|
|
|
2023-10-01 00:45:00 +08:00
|
|
|
require('normal.normal')
|
2023-10-15 22:30:52 +08:00
|
|
|
|