2023-08-21 20:52:44 +02:00
|
|
|
-- Is new loader available?
|
|
|
|
if vim.loader then
|
|
|
|
vim.loader.enable()
|
|
|
|
end
|
2023-08-19 21:48:52 +02:00
|
|
|
|
2023-08-21 20:52:44 +02:00
|
|
|
-- Setup default options
|
2024-01-21 23:32:15 +01:00
|
|
|
require 'config.options'
|
|
|
|
require 'config.keymaps'
|
2023-07-10 13:46:48 +02:00
|
|
|
|
2023-08-21 20:52:44 +02:00
|
|
|
-- Are we inside Neovide?
|
2023-07-29 21:15:17 +02:00
|
|
|
if vim.g.neovide then
|
2024-01-21 23:32:15 +01:00
|
|
|
require 'config.neovide'
|
2023-07-10 13:46:48 +02:00
|
|
|
end
|
|
|
|
|
2024-01-21 23:32:15 +01:00
|
|
|
-- Try load package manager
|
|
|
|
local ok, err = pcall(function()
|
|
|
|
require 'config.manager'
|
|
|
|
end)
|
2023-07-10 13:46:48 +02:00
|
|
|
|
2024-01-21 23:32:15 +01:00
|
|
|
if not ok and err then
|
|
|
|
vim.cmd 'colorscheme slate'
|
2023-11-15 21:39:37 +01:00
|
|
|
|
2024-01-21 23:32:15 +01:00
|
|
|
vim.schedule(function()
|
|
|
|
vim.notify(err, vim.log.levels.ERROR)
|
2023-08-21 20:52:44 +02:00
|
|
|
end)
|
2023-07-29 21:15:17 +02:00
|
|
|
end
|