Let Neovim's current line show the terminal background (#963)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
175c605260
commit
d0815d6339
2 files changed
+9
-1
No files matched your search
@@ -54,6 +54,14 @@ local groups = {
|
||||
"NotifyDEBUGBorder",
|
||||
}
|
||||
|
||||
-- The current line goes see-through too, leaving its number to mark it. The
|
||||
-- file tree marks its selection with that line alone, so it keeps the colour.
|
||||
local cursorline = vim.api.nvim_get_hl(0, { name = "CursorLine", link = false })
|
||||
if cursorline.bg then
|
||||
vim.api.nvim_set_hl(0, "NeoTreeCursorLine", { bg = cursorline.bg })
|
||||
end
|
||||
table.insert(groups, "CursorLine")
|
||||
|
||||
for _, name in ipairs(groups) do
|
||||
make_transparent(name)
|
||||
end
|
||||
Reference in new issue
Block a user