Skip to content

Migrate Neovim plugin manager from lazy.nvim to vim.pack#1

Merged
remi merged 6 commits intomasterfrom
feature/migrate-from-lazy-to-pack
Mar 30, 2026
Merged

Migrate Neovim plugin manager from lazy.nvim to vim.pack#1
remi merged 6 commits intomasterfrom
feature/migrate-from-lazy-to-pack

Conversation

@remi
Copy link
Copy Markdown
Owner

@remi remi commented Mar 30, 2026

With the help of Claude, let’s migrate from lazy.nvim to the new vim.pack.

remi and others added 6 commits March 30, 2026 10:05
- Replace lazy.nvim bootstrap with vim.pack.add() for all 19 plugins
- Convert all plugin config files from lazy.nvim spec format to direct setup calls
- Enable vim.loader for improved startup performance
- Implement lazy loading for formatting/linting plugins via autocmd
- Maintain modular plugin organization in lua/plugins/

This migration removes the external dependency on lazy.nvim and uses
Neovim 0.12's native package manager instead.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Wrap plugin configurations in vim.schedule() to ensure they load
after vim.pack.add() completes. This fixes the "module not found"
error for nvim-treesitter and other plugins.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace vim.schedule() with VimEnter autocmd to ensure plugins are
fully initialized before loading their configurations.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
vim.pack installs plugins in the opt/ directory which requires
explicit loading with :packadd. Add packadd commands for all plugins
before their configurations are loaded.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The nvim-treesitter API changed from require('nvim-treesitter.configs')
to require('nvim-treesitter'). Update plugin config to use the new API.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace deprecated require('lspconfig') with vim.lsp.config API
introduced in Neovim 0.11. Use vim.lsp.config.* to define server
configs and vim.lsp.enable() to activate them.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@remi remi force-pushed the feature/migrate-from-lazy-to-pack branch from d86899f to a95b51c Compare March 30, 2026 14:05
@remi remi merged commit 17518ad into master Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant