-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.lua
23 lines (20 loc) · 1020 Bytes
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- NOTE: Author : Shadorain
-- NOTE: Github : @Shadorain
------------------------------- WELCOME TO SHADOVIM ----------------------------
-- WARNING: THIS IS A PERSONAL CONFIGURATION NOT A DISTRO, YOU CAN USE DEFAULT CONFIGURATION OR CUSTOMIZE IT
require("shadovim.config")
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.cmd("redraw")
vim.api.nvim_echo({ { "Welcome to Shadovim ", "Bold" } }, true, {})
local repo = "https://github.com/folke/lazy.nvim.git"
local output = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", repo, lazypath })
assert(vim.v.shell_error == 0, "External call failed with error code: " .. vim.v.shell_error .. "\n" .. output)
vim.opt.rtp:prepend(lazypath)
require("shadovim.plugins")
vim.cmd("ShadovimCheckMason")
vim.cmd("redraw")
vim.api.nvim_echo({ { "Wait for everything install. Reopen Neovim then ENJOY!", "Bold" } }, true, {})
end
vim.opt.rtp:prepend(lazypath)
require("shadovim.plugins")