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,5 +1,9 @@
G = require('G')
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
@ -22,27 +26,17 @@ if not G.loop.fs_stat(lazypath) then
})
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
require('vscode.vscode')
else
require('neovim.neovim')
end
require("lazy").setup({
require('normal.plug'),
require('neovim.plug')
})
require('normal.normal')
require('neovim.neovim')
end

View File

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