From 02814a2ba406b05316660ad6d311b9365fb64c76 Mon Sep 17 00:00:00 2001 From: newbieQQ Date: Thu, 16 Nov 2023 12:46:18 +0800 Subject: [PATCH] update --- init.lua | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/init.lua b/init.lua index b889ff1..4660eb7 100644 --- a/init.lua +++ b/init.lua @@ -1,38 +1,37 @@ 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", + lazypath, + }) + + G.fn.system({ + "git", + "config", + "--global", + "credential.helper", + "store", + }) + +end + +G.opt.rtp:prepend(lazypath) if G.g.vscode then require('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", - "--branch=stable", - lazypath, - }) - - G.fn.system({ - "git", - "config", - "--global", - "credential.helper", - "store", - }) - - end - G.opt.rtp:prepend(lazypath) - + require("keymap") + require("options") require("lazy").setup(require('plugs')) - - end -require("keymap") -require("options")