This commit is contained in:
newbieQQ 2023-11-14 13:47:43 +08:00
parent eee82fd12a
commit f13050bbff
2 changed files with 32 additions and 37 deletions

View File

@ -1,48 +1,42 @@
G = require('G') 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",
-- latest stable release
"--branch=stable",
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
normalplugs = {vscodeplugs, normalplugs}
else
normalplugs = {neovimplugs, normalplugs}
end
require("lazy").setup(normalplugs)
if G.g.vscode then if G.g.vscode then
require('vscode.vscode') require('vscode.vscode')
else else
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",
-- latest stable release
"--branch=stable",
lazypath,
})
G.fn.system({
"git",
"config",
"--global",
"credential.helper",
"store",
})
end
G.opt.rtp:prepend(lazypath)
require("lazy").setup({
require('normal.plug'),
require('neovim.plug')
})
require('normal.normal')
require('neovim.neovim') require('neovim.neovim')
end end
require('normal.normal')

View File

@ -0,0 +1 @@
require("vscode.keymap")