-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
27 lines (24 loc) · 1.14 KB
/
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
24
25
26
27
-- NOTE: Author : Nguyen Thanh Son - SownteeNguyen
-- NOTE: Github : @sownteedev
------------------------------- WELCOME TO TEVIM -------------------------------
-- WARNING: THIS IS A PERSONAL CONFIGURATION NOT A DISTRO, YOU CAN USE DEFAULT CONFIGURATION OR CUSTOMIZE IT
require("tevim.core.options")
require("tevim.core.keymaps")
require("tevim.core.autocmds")
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.cmd("TeVimCreateCustom")
require("tevim.themes").load()
vim.cmd("redraw")
vim.api.nvim_echo({ { "Hi there, welcome to TEVIM ", "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("tevim.plugins")
vim.cmd("TeVimCheckMason")
vim.cmd("redraw")
vim.api.nvim_echo({ { "Wait for everything install. Reopen Neovim then ENJOY!", "Bold" } }, true, {})
end
vim.opt.rtp:prepend(lazypath)
require("tevim.plugins")