How curtkim/nvim-from-scratch works
Project’s Main Components
• Neovim Core / Entry Point – Represented by the init.lua file at the root. This is the entry point which loads the configuration.
• Configuration Modules – Found under the lua/config directory. These modules include keymaps.lua (handling keyboard shortcuts), lazy.lua (likely managing lazy.nvim setup), and options.lua (editor settings).
• Plugin Configuration – Gathered inside the lua/plugins folder. Each file here sets up a different plugin (e.g., blink-cmp, lsp, which-key, etc.). This clearly separates individual plugin configurations rather than a monolithic config.
• External/Temporary Code – The tmp directory includes test files (hello_world.lua and hello_world.sh) along with a Rust “hello_world” project. Although not part of the configuration per se, they may serve as sample or experimental code illustrating interoperability or testing procedures.
Relationships and Interactions
• The lazy-lock.json and lazy.lua indicate that lazy.nvim (a plugin manager) is used to orchestrate the downloading, versioning, and handling of plugins. Thus, add an external “Plugin Manager (lazy.nvim)” component that the plugins module communicates with.
Architectural Patterns and Principles
• Extensibility: With plugin-specific configuration files, it is straightforward to add or remove plugins without affecting the rest of the config. Indicate that each plugin file is a plug-in component that can be individually modified.
Technologies & Frameworks
• Neovim – the underlying text editor.
• Lua – the scripting language used for the configuration.
• lazy.nvim – the plugin manager which is central to how plugins are handled in this setup.
• Additional plugins – like lsp for language server protocol support, treesitter for syntax parsing, which-key for keybinding hints, etc.
• (Optional) Rust – In the temporary directory, indicating an example external or experimental project integration.