forked from NormalNvim/NormalNvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
27 lines (25 loc) · 819 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
-- HELLO, welcome to NormalNvim!
-- ---------------------------------------
-- This is the entry point of your config.
-- ---------------------------------------
-- LOAD SOURCE FILES BY ORDER:
vim.loader.enable()
for _, source in ipairs {
"base.1-options",
"base.2-lazy",
"base.3-autocmds",
"base.4-mappings",
} do
local status_ok, error = pcall(require, source)
if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. error) end
end
-- ONCE ALL SOURCE FILES HAVE LOADED:
-- Load the color scheme defined in ./lua/1-options.lua
if base.default_colorscheme then
if not pcall(vim.cmd.colorscheme, base.default_colorscheme) then
require("base.utils").notify(
"Error setting up colorscheme: " .. base.default_colorscheme,
vim.log.levels.ERROR
)
end
end