This commit is contained in:
QQ 2023-10-07 10:49:13 +08:00
parent b0177d7e1b
commit b0c72897dc
3 changed files with 36 additions and 48 deletions

View File

@ -1,5 +1,41 @@
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

24
install
View File

@ -1,24 +0,0 @@
if [ -f /etc/lsb-release ]; then
echo "This linux is Ubuntu!!!"
# 安装neovim
apt install software-properties-common
add-apt-repository ppa:neovim-ppa/unstable
apt update && apt upgrade -y && apt install neovim -y
# 安装nodejslsp 用得到)
curl -sL https://deb.nodesource.com/setup_18.x | bash -
apt update && apt upgrade -y && apt install nodejs -y
# 安装python3
git config --global credential.helper store
else
echo "This linux is Archlinux!!!"
sudo pacman -S --needed --noconfirm neovim nodejs
fi

View File

@ -44,30 +44,6 @@ 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