Restructure
This commit is contained in:
16
config/nvim/init.lua
Normal file
16
config/nvim/init.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
-- 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
|
||||
Reference in New Issue
Block a user