wqe
This commit is contained in:
parent
c97c6a0cf0
commit
962d79f5b4
2
init.lua
2
init.lua
@ -1,7 +1,5 @@
|
||||
G = require('G')
|
||||
|
||||
require('plugsettings')
|
||||
|
||||
if G.g.vscode then
|
||||
require('vscode.vscode')
|
||||
else
|
||||
|
26
lua/G.lua
26
lua/G.lua
@ -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
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user