This commit is contained in:
QQ 2023-10-05 23:21:33 +08:00
parent c97c6a0cf0
commit 962d79f5b4
3 changed files with 26 additions and 27 deletions

View File

@ -1,7 +1,5 @@
G = require('G')
require('plugsettings')
if G.g.vscode then
require('vscode.vscode')
else

View File

@ -44,4 +44,30 @@ end
G.g.mapleader = ' '
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", -- latest stable release
lazypath,
})
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
plugs = {vscodeplugs, normalplugs}
else
plugs = {neovimplugs, normalplugs}
end
require("lazy").setup(plugs)
return G

View File

@ -1,25 +0,0 @@
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",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
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
plugs = {vscodeplugs, normalplugs}
else
plugs = {neovimplugs, normalplugs}
end
require("lazy").setup(plugs)