nvim/init.lua
2023-11-14 13:47:43 +08:00

43 lines
682 B
Lua

G = require('G')
if G.g.vscode then
require('vscode.vscode')
else
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",
-- latest stable release
"--branch=stable",
lazypath,
})
G.fn.system({
"git",
"config",
"--global",
"credential.helper",
"store",
})
end
G.opt.rtp:prepend(lazypath)
require("lazy").setup({
require('normal.plug'),
require('neovim.plug')
})
require('normal.normal')
require('neovim.neovim')
end