Skip to content

Let Neovim's current line and status line show the terminal background on existing installs - #15024

Merged
dhh merged 1 commit into
quattrofrom
nvim-transparent-cursorline-migration
Oct 11, 2026
Merged

dhh merged 1 commit into
quattrofrom
nvim-transparent-cursorline-migration

Conversation

@dhh

@dhh dhh commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Brings omacom/omarchy-pkgs#963 and #967 to existing installs. Under transparent and Glassy windows, those PRs let Neovim's current line (CursorLine) and its status line (StatusLine and lualine's middle sections) show the terminal background instead of solid stripes, while neo-tree keeps its selection colour. ~/.config/nvim is copied once from omarchy-nvim, so existing configs never pick up package changes.

Migration, following 1788996284.sh:

  • plugin/after/transparency.lua is replaced with the package's copy only while it is byte-identical to one of the three versions Omarchy has shipped. A file the user changed is kept.
  • lua/plugins/lualine-transparent.lua is copied from the package unless one already exists.
  • A config that a dotfile manager links in, through the file or a parent directory, is left alone.
  • Each copy is staged beside its target and moved into place whole, so a failed write leaves the original and the migration stays pending.
  • An omarchy-nvim older than 2026.9.21-5 (without the lualine spec) also leaves it pending, to run after the package update.

Merge order: the package from omacom/omarchy-pkgs#967 should be published before this ships, or migrations wait on it.

Tests: new test/shell.d/nvim-transparent-lines-migration-test.sh runs the migration against a stand-in package. It covers a shipped config, a second run, files the user changed or added, a linked config, an older package, a failed write, and a missing config. ./test/cli passes.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium impact] Migration script updates Neovim configuration files on user systems.

Add a missing-package guard before merging so users who removed omarchy-nvim can finish their updates.

Findings

  1. P1 Removed package blocks updates ▶

Summary

This PR copies packaged Neovim transparency settings into existing installs.

  • Existing Neovim configs can pick up transparent current and status lines.

Reviews (4) · Last reviewed commit: "Let Neovim's current line and status lin..." · Reviewed by Greptile

Comment thread migrations/1791723398.sh Resolved
Comment thread migrations/1791723398.sh Resolved
@dhh
dhh force-pushed the nvim-transparent-cursorline-migration branch from 30b7b34 to 8537d5b Compare October 11, 2026 13:10
@dhh
dhh force-pushed the nvim-transparent-cursorline-migration branch from 8537d5b to d221086 Compare October 11, 2026 13:13
@dhh dhh changed the title Let Neovim's current line show the terminal background on existing installs Let Neovim's current line and status line show the terminal background on existing installs Oct 11, 2026
Comment thread migrations/1791723398.sh Resolved
Comment thread migrations/1791723398.sh Resolved
…d on existing installs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh force-pushed the nvim-transparent-cursorline-migration branch from babfb37 to b8a350b Compare October 11, 2026 13:27
@dhh
dhh merged commit 5f25ef1 into quattro Oct 11, 2026
1 check passed
Comment thread migrations/1791723398.sh
Comment on lines +26 to +28
if [[ ! -f $package/${files[1]} ]]; then
echo "Update omarchy-nvim to 2026.9.21-5 or newer before rerunning this migration." >&2
exit 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Removed package blocks updates

If a user removes omarchy-nvim but keeps their Neovim config, this check fails on every update. omarchy-update-system-pkgs upgrades installed packages; it does not reinstall the removed package. The failure stops all later migrations, even when both config files need no changes.

Skip this migration when omarchy-nvim is not installed, and keep the retry check for an installed older package.

Knowledge Base Used: Migration framework

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.

2 participants