17 lines
585 B
Lua
17 lines
585 B
Lua
-- init.lua - standardized neovim config for managed hosts.
|
|
-- Design goals: fast, works offline (pure-lua core), plugins are optional.
|
|
|
|
-- core: zero external dependencies, always loads
|
|
require("core.options")
|
|
require("core.keymaps")
|
|
require("core.autocmds")
|
|
|
|
-- plugins: best-effort. if bootstrap fails (no network on a fresh box),
|
|
-- the editor still works perfectly with the core config above.
|
|
local ok, err = pcall(require, "core.plugins")
|
|
if not ok then
|
|
vim.schedule(function()
|
|
vim.notify("plugins not loaded (offline?): " .. tostring(err), vim.log.levels.WARN)
|
|
end)
|
|
end
|