Let Neovim's status line show the terminal background (#967)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5406b5cb0
commit
60551aaddc
3 files changed
+24
-1
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Ryan Hughes <ryan@omarchy.org>
|
||||
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"
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
@@ -20,6 +20,8 @@ local groups = {
|
||||
"SignColumn",
|
||||
"LineNr",
|
||||
"CursorLineNr",
|
||||
"StatusLine",
|
||||
"StatusLineNC",
|
||||
"NormalNC",
|
||||
"WhichKeyFloat",
|
||||
"TelescopeBorder",
|
||||
|
||||
Reference in new issue
Block a user