93d8f9a28d
- Add gx.nvim for smart URL opening (GitHub, plugins, package.json, search) - Add comment-box.nvim with keymaps for creating/deleting comment boxes - Load machine-local secrets.lua and local.lua from ~/.config/.user-dots/nvim/ - Update README with new plugins, keymaps, and portability highlight Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
1.7 KiB
Lua
46 lines
1.7 KiB
Lua
--[[
|
|
┌────────────────────────────────────────────────────────────────┐
|
|
│ Rootiest Neovim │
|
|
└────────────────────────────────────────────────────────────────┘
|
|
--]]
|
|
|
|
-- Copyright (C) 2026 rootiest
|
|
--
|
|
-- This program is free software: you can redistribute it and/or modify
|
|
-- it under the terms of the GNU General Public License as published by
|
|
-- the Free Software Foundation, either version 3 of the License, or
|
|
-- (at your option) any later version.
|
|
--
|
|
-- This program is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU General Public License
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
-- Set leader keys before loading any plugins
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = " "
|
|
|
|
-- Initialize global registry
|
|
_G.Config = {
|
|
plugins = {},
|
|
called = {},
|
|
}
|
|
|
|
-- Load core modules
|
|
require('lazyload')
|
|
require('options')
|
|
require('plugins')
|
|
require('keymaps')
|
|
|
|
-- 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
|