forked from AstroNvim/AstroNvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
executable file
·28 lines (24 loc) · 827 Bytes
/
init.lua
File metadata and controls
executable file
·28 lines (24 loc) · 827 Bytes
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
if vim.loader and vim.fn.has "nvim-0.9.1" == 1 then vim.loader.enable() end
for _, source in ipairs {
"astronvim.bootstrap",
"astronvim.options",
"astronvim.lazy",
"astronvim.autocmds",
"astronvim.mappings",
} do
local status_ok, fault = pcall(require, source)
if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault) end
end
-- Neovide Operations
if vim.g.neovide then
vim.cmd("set guifont=MesloLGS\\ NF:h10")
end
if astronvim.v7_colorscheme then
if not pcall(vim.cmd.colorscheme, astronvim.v7_colorscheme) then
require("astronvim.utils").notify(
("Error setting up colorscheme: `%s`"):format(astronvim.v7_colorscheme),
vim.log.levels.ERROR
)
end
end
require("astronvim.utils").conditional_func(astronvim.user_opts("polish", nil, false), true)