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,7 +1,11 @@
G = require('G') G = require('G')
local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not G.loop.fs_stat(lazypath) then if G.g.vscode then
require('vscode.vscode')
else
local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not G.loop.fs_stat(lazypath) then
G.fn.system({ G.fn.system({
"git", "git",
@ -21,28 +25,18 @@ if not G.loop.fs_stat(lazypath) then
"store", "store",
}) })
end end
G.opt.rtp:prepend(lazypath)
G.opt.rtp:prepend(lazypath) require("lazy").setup({
require('normal.plug'),
require('neovim.plug')
})
local normalplugs = require('normal.plug') require('normal.normal')
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
require('vscode.vscode')
else
require('neovim.neovim') require('neovim.neovim')
end end
require('normal.normal')

View File

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