d43128c2d0
- Add lua/bootstrap.lua: redirects Neovim data/state paths when running
as root (e.g. via symlinked ~/.config/nvim) to prevent root sessions
from conflicting with the user-level install
- Update init.lua to require("bootstrap") before any other module
- Standardize license headers across all Lua files (capitalize author,
add SPDX-License-Identifier)
- Update README with full plugin stack section, bootstrap docs,
machine-local override docs, qalculate dependency, and blink.cmp
auto-rebuild note
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
1.2 KiB
Lua
33 lines
1.2 KiB
Lua
--[[
|
|
┌────────────────────────────────────────────────────────────────┐
|
|
│ Rootiest Neovim │
|
|
└────────────────────────────────────────────────────────────────┘
|
|
--]]
|
|
|
|
-- Copyright (C) 2026 Rootiest
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-- Trigger bootstrap (runtime path, etc.)
|
|
require("bootstrap")
|
|
|
|
-- Initialize global registry
|
|
_G.Config = {
|
|
plugins = {},
|
|
called = {},
|
|
}
|
|
|
|
-- Load core modules
|
|
require("lazyload") -- Plugin lazy-loading module
|
|
require("options") -- Configuration options
|
|
require("plugins") -- Plugin specifications and setup
|
|
require("keymaps") -- Key mappings
|
|
|
|
-- Source machine-local and secret overrides (silently ignored if absent)
|
|
local user_dots = vim.fn.expand("~/.config/.user-dots/nvim/")
|
|
for _, file in ipairs({ "secrets.lua", "local.lua" }) do
|
|
local path = user_dots .. file
|
|
if vim.fn.filereadable(path) == 1 then
|
|
dofile(path)
|
|
end
|
|
end
|