nvim/init.lua
2023-10-07 10:49:13 +08:00

53 lines
956 B
Lua

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",
"--branch=stable", -- latest stable release
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
plugs = {vscodeplugs, normalplugs}
else
plugs = {neovimplugs, normalplugs}
end
require("lazy").setup(plugs)
if G.g.vscode then
require('vscode.vscode')
else
require('neovim.neovim')
end
require('normal.normal')
-- require('Plugin.coc')
-- require('Plugin.Imchange')
-- require('Plugin.lualine')
-- require('Plugin.Imchange')
-- require('Plugin.NERDTree')