Update¶
:CodeArtUpdate¶
Updates CodeArt and everything it installs, in this order:
- CodeArt itself:
git fetch, then a fast-forward of the config folder (git merge --ff-only). It never merges and never overwrites your changes (see below). - Plugins: lazy.nvim checks out the versions pinned in the updated
lazy-lock.json(:Lazy restore). Unlike:Lazy update, this does not rewritelazy-lock.json, so your clone stays clean. - Mason tools: every installed Mason package (language servers, formatters, linters, debuggers) is upgraded to its latest version.
- Treesitter parsers:
:TSUpdate.
At the end it shows one summary:
CodeArt config updated.
Version: 2.4.0 (b179267) -> 2.5.0 (1a2b3c4)
Commits pulled in (12):
1a2b3c4 docs(changelog): release 2.5.0
...
BREAKING changes (see CHANGELOG.md):
- **Modules moved under `lua/codeart/`** ...
Plugins changed (3):
blink.cmp 1111111 -> 2222222
...
Mason tools updated (2):
lua-language-server 3.15.0 -> 3.16.0
...
Treesitter parsers: updated (:TSUpdate)
Restart Neovim to load the new version (new plugins install on start; then :checkhealth codeart).
The BREAKING lines come from the CHANGELOG entries newer than your old version: bullets that say BREAKING and bullets under a "Breaking" heading. A step that fails (for example a Mason download) is listed and turns the summary into a warning; the other steps still run. If CodeArt is already up to date, the plugin, Mason and parser steps still run.
It does not upgrade Neovim. Install or upgrade Neovim with your OS package manager (Homebrew, apt, pacman, winget, etc.). If CodeArt reports that Neovim is too old after an update, upgrade Neovim first, then reopen the editor.
:CodeArtUpdate check¶
Only fetches and reports: your version, the version an update would bring, the new commits, the BREAKING lines and anything that would stop the update (local changes or local commits). Nothing is changed.
If an update breaks something for you, :CodeArtUpdate rollback takes you back to the version you had before (see below).
:CodeArtUpdate rollback¶
Goes back to the version you had before an update, if the new one breaks something for you.
Every time :CodeArtUpdate moves the config to a new commit, it first saves a snapshot of where you were: the commit, the lazy-lock.json you had (the plugin versions that were installed), the CodeArt version and the time. The last three are kept, in stdpath("state")/codeart/update-snapshots/ (~/.local/state/nvim/codeart/update-snapshots/ on Linux and macOS), outside the config folder.
:CodeArtUpdate rollback:
- lists the snapshots, newest first (
CodeArt 2.7.0 (0ea214f), saved 2026-12-02 16:30) - asks you to confirm
- resets the config to that commit (
git reset --hard), puts itslazy-lock.jsonback, and syncs plugins, Mason tools and parsers like an update does - tells you to restart Neovim
:CodeArtUpdate brings you forward to the latest version again whenever you want.
It refuses, and changes nothing, when:
- you have local changes to tracked files (a rollback would lose them; commit them, or drop them with
git -C ~/.config/nvim checkout -- <file>, first) - your branch has local commits that are not on the remote (they would be dropped)
- a merge or rebase is in progress, or HEAD is detached
- there is no snapshot yet (nothing has been updated since 2.8)
Your user/ folder and any other git-ignored files are never changed by a rollback. Going back to a version before 2.8, which reads codeart_settings.lua and languages/, also copies user/settings.lua and user/languages/*.lua there (it never overwrites a file); the next start of 2.8 moves them back, keeping whichever copy is newer.
Customizations and local changes¶
Put customizations in the user/ folder of the config: settings in user/settings.lua, plugin specs in user/plugins/, your own language packs in user/languages/, key maps in user/keymaps.lua. Git ignores the folder and updates never touch it. See Configuration and the Setup wizard.
If you edited lua/user_settings.lua before 2.2, run :CodeArtMigrateSettings (CodeArt also offers this on first start), then git checkout -- lua/user_settings.lua. Otherwise those edits count as local changes and stop every update.
Local changes to tracked files¶
:CodeArtUpdate fetches first, so if you are offline or the remote can't be reached it stops before changing anything. If you changed files that git tracks (anything except user/ and other ignored files), it stops before the update and lists them:
CodeArt was not updated: you changed files that the update may replace:
lua/codeart/maps.lua
Nothing was changed. Choose one, then run :CodeArtUpdate again:
- put your customizations in user/settings.lua (updates never touch it) and drop the edits: git -C ~/.config/nvim checkout -- <file>
- or run :CodeArtUpdate stash to save them (git stash + a patch in ~/.local/state/nvim/codeart/backups), update, and put them back
- or commit them and run git -C ~/.config/nvim pull --rebase yourself
A changed lazy-lock.json usually comes from :Lazy update. :CodeArtUpdate installs the pinned versions again, so you can drop it with git -C ~/.config/nvim checkout -- lazy-lock.json.
:CodeArtUpdate stash¶
Keeps your local changes through the update:
- saves them as a patch in
stdpath("state")/codeart/backups/<date-time>.patch(~/.local/state/nvim/codeart/backups/on Linux and macOS) and in a git stash namedCodeArtUpdate backup <date-time> - fast-forwards the config to the new version
- puts your changes back and tells you where the backup is
If your changes conflict with the update (for example a lazy-lock.json changed on both sides), the updated files are kept, your changes are not put back, and they stay in the stash and the patch. The message shows the commands to restore them:
git -C ~/.config/nvim stash apply <stash id> # from the message or `git stash list`
git -C ~/.config/nvim apply --3way <path to patch> # same changes, from the backup file
Both leave conflict markers where your change and the update touched the same lines. Untracked and git-ignored files (such as everything in user/) are never touched. If your config has local commits, :CodeArtUpdate stops and asks you to run git pull --rebase yourself.
Migrating from older CodeArt¶
See CHANGELOG.md for breaking changes, and Migrating for the 2.2 settings file, the 2.3 plugin replacements and the 2.5 module move.
From 1.x / early 2.x renames (examples):
config.null_ls→config.conform/config.lintconfig.cmp→config.blinkconfig.nvim_tree→config.neo_treedisable_plugins.nvim_tree→neo_treedisable_plugins.null_ls→conform/lintdisable_plugins.nvim_cmp/cmp_*→blink_cmp
Treesitter main (2.1)¶
- Upgrade Neovim to 0.12+
- Install
tree-sitter-cli(e.g.brew install tree-sitter-cli) - Pull CodeArt /
:CodeArtUpdate :Lazy sync:TSUninstall all- Restart, then
:TSUpdate :checkhealth nvim-treesitter