Migrate Neovim plugin manager from lazy.nvim to vim.pack#1
Merged
Conversation
- 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>
d86899f to
a95b51c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the help of Claude, let’s migrate from
lazy.nvimto the new vim.pack.