From 60551aaddc098c34cd69862ed8c0569e1ce74d5f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 11 Oct 2026 15:24:23 +0200 Subject: [PATCH] Let Neovim's status line show the terminal background (#967) Co-authored-by: Claude Opus 5.5 --- pkgbuilds/omarchy-nvim/PKGBUILD | 2 +- .../lua/plugins/lualine-transparent.lua | 21 +++++++++++++++++++ .../plugin/after/transparency.lua | 2 ++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 pkgbuilds/omarchy-nvim/lua/plugins/lualine-transparent.lua diff --git a/pkgbuilds/omarchy-nvim/PKGBUILD b/pkgbuilds/omarchy-nvim/PKGBUILD index 1acc6c93..02f1ab1f 100644 --- a/pkgbuilds/omarchy-nvim/PKGBUILD +++ b/pkgbuilds/omarchy-nvim/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Ryan Hughes pkgname=omarchy-nvim pkgver=2026.9.21 -pkgrel=4 +pkgrel=5 pkgdesc="Pre-built LazyVim configuration with cached plugins" arch=('any') url="https://github.com/LazyVim/LazyVim" diff --git a/pkgbuilds/omarchy-nvim/lua/plugins/lualine-transparent.lua b/pkgbuilds/omarchy-nvim/lua/plugins/lualine-transparent.lua new file mode 100644 index 00000000..cd185395 --- /dev/null +++ b/pkgbuilds/omarchy-nvim/lua/plugins/lualine-transparent.lua @@ -0,0 +1,21 @@ +-- Let the status line show the terminal background, like the rest of the +-- editor. Lualine's auto theme paints its middle sections a solid colour, so +-- they are cleared on each theme it builds, which it does again on every +-- colorscheme change. The mode and position sections keep their colours. +return { + "nvim-lualine/lualine.nvim", + opts = function(_, opts) + opts.options = opts.options or {} + opts.options.theme = function() + local theme = require("lualine.utils.loader").load_theme("auto") + for _, mode in pairs(theme) do + for _, section in ipairs({ "b", "c" }) do + if mode[section] then + mode[section].bg = "None" + end + end + end + return theme + end + end, +} diff --git a/pkgbuilds/omarchy-nvim/plugin/after/transparency.lua b/pkgbuilds/omarchy-nvim/plugin/after/transparency.lua index 17eec67a..2be753a5 100644 --- a/pkgbuilds/omarchy-nvim/plugin/after/transparency.lua +++ b/pkgbuilds/omarchy-nvim/plugin/after/transparency.lua @@ -20,6 +20,8 @@ local groups = { "SignColumn", "LineNr", "CursorLineNr", + "StatusLine", + "StatusLineNC", "NormalNC", "WhichKeyFloat", "TelescopeBorder",