-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
36 lines (28 loc) · 976 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
24
25
26
27
28
29
30
31
32
33
34
35
36
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
local path = vim.fn.stdpath("config") .. "/lua/custom/init.lua"
local util = require("util")
if not vim.loop.fs_stat(path) then
util.generate_files("https://github.com/pimdistro/default", "config", "/lua/custom/")
util.generate_files("https://github.com/pimdistro/colors", "colors", "/colors/")
-- print something idk
print("Enjoy your Pim experience!")
end
-- here we will include the plugins directory, so we can actually initialize the plugins
require("plugins.plugins")
require("options")
require("custom.init")
-- call this as last to ensure everything is loaded.
-- probably not required for most things, but just in case.
util.load_config()