-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.lua
More file actions
33 lines (28 loc) · 1.36 KB
/
Copy pathinit.lua
File metadata and controls
33 lines (28 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--[[ ============================================================================
NEOVIM ENTRY POINT
============================================================================
This is the main entry point of the configuration. It is intentionally tiny:
all heavy lifting is delegated to small modules under `lua/config/`.
Load order matters:
1. options -> editor settings (loaded first, sync, no plugins)
2. lazy -> plugin manager bootstrap (loads plugin specs)
3. keymaps -> global keymaps that don't depend on a specific plugin
4. autocmds -> autocommands (filetypes, highlights, perf)
Performance notes:
- vim.loader.enable() turns on the byte-code module cache (Neovim 0.9+).
- Unused providers are disabled (perl, ruby, python3, node) so Neovim does
not waste time probing for them at startup.
- Most plugins are loaded lazily (event/cmd/ft/keys) inside their spec files.
============================================================================ ]]
-- Enable the Lua module cache (huge startup win on Neovim 0.9+).
if vim.loader and vim.loader.enable then
vim.loader.enable()
end
-- Leader keys must be set before any plugin spec is loaded.
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Load configuration modules.
require("config.options")
require("config.lazy")
require("config.keymaps")
require("config.autocmds")