A dead simple lazy-loading Lua library for Neovim plugins, providing an API to load plugins on various triggers.
lze is a minimal Lua library designed to simplify lazy-loading for Neovim plugins. It provides a clean API for users and plugin managers to defer plugin initialization until specific events occur, reducing startup time without the complexity of a full plugin manager.
Neovim users who want to lazy-load plugins with a simple API, and plugin managers that need a lazy-loading component without managing the entire plugin lifecycle.
Developers choose lze for its focused, UNIX-philosophy approach to lazy-loading, offering a straightforward and extensible API without the overhead of a full plugin manager like lazy.nvim. It provides predictable loading behavior with minimal code complexity.
A lazy-loading library for neovim, inspired by, but different from, nvim-neorocks/lz.n
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Built around a read-only table state, lze ensures minimal overhead and predictable loading behavior, as emphasized in the philosophy section of the README.
Users can define custom handlers for unique lazy-loading triggers, allowing flexible extension beyond built-in events like autocmd or key mappings.
Supports lazy-loading on autocmd events, FileType events, commands, key mappings, colorschemes, and plugin dependencies, covering most Neovim use cases directly from the spec.
Focuses solely on lazy-loading, keeping the codebase simple and the API straightforward, which reduces complexity and learning curve compared to full plugin managers.
Only imports single Lua modules, not entire directories, making it less convenient for organizing large plugin configurations compared to tools like lazy.nvim that support directory imports.
Plugins that rely on 'after' directories, such as some nvim-cmp sources, require custom load functions or external helpers like lzextras, adding setup complexity for users.
Lacks heuristics for automatic setup function calling or require-based loading, which are out of scope and may necessitate more manual configuration and boilerplate code.
lze is an open-source alternative to the following products: