Migration to v7.0
AstroNvim v7 update is pretty mild! A lot of development has gone into Neovim v0.13 and the main goal of this update is to provide full support for the new release. Luckily there hasn’t been really any breaking changes from upstream for users to worry about, so most of the changes in our source code have just been code clean up and dropping support for Neovim v0.11. For those of you who have been here for several previous major version releases, I am pleased to inform you this one should be nearly 100% hands off.
Setting Up a Migration Environment
Section titled “Setting Up a Migration Environment”Breaking your working editor configuration when migrating to v7 will make it difficult to edit your new configuration. As such, we recommend following the process below so that your existing editor keeps working while you upgrade to the new v7 configuration. This workflow makes use of an Isolated Installation environment.
-
Clone the AstroNvim v7 configuration template to a new location (
astronvim_v7is used as the example):Terminal window git clone https://github.com/AstroNvim/template ~/.config/astronvim_v7rm -rf ~/.config/astronvim_v7/.git -
Start
nvimin the new environment.nvimshould start, bootstrap itself by installing and loadinglazy.nvim. Lazy will load all of the plugins specified by AstroNvim.Terminal window NVIM_APPNAME=astronvim_v7 nvim -
Migrate your AstroNvim v6 configuration to your new AstroNvim v7 environment at
~/.config/astronvim_v7using the guide below. You can use your previous AstroNvim setup to do the editing and then continue running the command in Step 2 to test the new installation. -
Once you have your configuration set up how you like it, move it over to the default neovim configuration location
~/.config/nvim:Terminal window # Backup old Neovim foldersmv ~/.local/share/nvim ~/.local/share/nvim.bak # backup old data foldermv ~/.local/state/nvim ~/.local/state/nvim.bak # backup old state foldermv ~/.cache/nvim ~/.cache/nvim.bak # backup old cache foldermv ~/.config/nvim ~/.config/nvim.bak # backup old config# Move new configuration into placemv ~/.config/astronvim_v7 ~/.config/nvim # move new config -
Run your new v6 environment simply with
nvim🎉
Migration Guide
Section titled “Migration Guide”Plugin Changes
Section titled “Plugin Changes”AstroNvim v7 comes with some changes to our default plugin list that user’s should keep in mind while performing the migration.
Renamed Plugins
Section titled “Renamed Plugins”A few plugins have been updated to a new name due to changes in the plugin repository owner. Please make sure to search and replace the old plugin entry names with the new to make sure plugin spec merging happens correctly.
| Old Plugin Name | New Plugin Name |
|---|---|
mrjones2014/smart-splits.nvim | smart-splits-nvim/smart-splits.nvim |
Details
Section titled “Details”smart-splits.nvimhas been update to v3.0.0 which comes with a large refactor and improvements to the project. If you have customizedsmart-splits.nvimat all in your personal configuration you may want to check out the Migration from v2 documentation on thesmart-splits.nvimrepository. Another not is that a big part of this change is separating out the available terminal backends into plugins. If you were previously utilizing different backends of smart-splits, you can manually configure and set up backend plugins that you want to use, or you can get them easily from thesplit-and-windowsection of AstroCommunity
Other Breaking Changes
Section titled “Other Breaking Changes”- Drop support for Neovim v0.11
New Features
Section titled “New Features”-
Multiple cursors (
:h multicursor) - Neovim v0.13 ships with built in multiple cursor support. This is fully supported in AstroNvim with one caveat. The default mapping for clearing multicurors by default isCtrl + l, this conflicts with the pane navigation mappings so we have opted to addCtrl + Backspaceas the mapping for clearing multicursors. -
New mappings:
Ctrl + Backspace- Clear multicursors in the current buffer