asd
This commit is contained in:
parent
b0177d7e1b
commit
b0c72897dc
36
init.lua
36
init.lua
@ -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
24
install
@ -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
|
||||
|
||||
|
||||
# 安装nodejs(lsp 用得到)
|
||||
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
|
||||
|
||||
|
24
lua/G.lua
24
lua/G.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user