nvim-minimal/init.lua

22 lines
997 B
Lua
Raw Normal View History

-- nvim-minimal: lightweight portable Neovim config.
-- Options first: several (termguicolors, etc.) must be set before lazy.nvim
-- starts so the plugin-install colorscheme renders correctly.
require("config.options")
-- Bootstrap + setup lazy.nvim (loads everything under lua/plugins/).
require("config.lazy")
-- Personal keymaps and autocmds. Plugin-bound keys (gb, <leader>F, <leader>t)
-- live in their plugin specs under lua/plugins/; these are the plugin-agnostic
-- ones (escape bigrams, Russian-layout fixes, arrow-key disables, etc.).
require("config.keymaps")
require("config.autocmds")
-- Colorscheme + transparency.
-- `based` is vendored at colors/based.vim (self-authored, GPLv3).
-- It never sets Normal's bg, so the terminal shows through; we still
-- force Normal/NormalFloat to none so plugin float windows stay transparent.
vim.cmd.colorscheme("based")
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })