Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/typicode/bg.nvim

Automatically sync your terminal background with your colorscheme 🎆
https://github.com/typicode/bg.nvim

alacritty background background-color border colorscheme foot kitty-terminal lua neovim neovim-colorscheme neovim-plugin nvim terminal theme wezterm

Last synced: 2 days ago
JSON representation

Automatically sync your terminal background with your colorscheme 🎆

Awesome Lists containing this project

README

        

# bg.nvim 🎆

> `bg.nvim` automatically syncs terminal background and cursor with any neovim colorscheme.

## Example

_Changing colorscheme with and without `bg.nvim`_

| - | | bg.nvim |
| ----------- | --- | -------- |
| ![without2] | → | ![with2] |
| ![without1] | → | ![with1] |

[without2]: https://user-images.githubusercontent.com/5502029/211707779-f2ca5cc8-7b0f-4644-ad07-2f1faccf38b7.png
[without1]: https://user-images.githubusercontent.com/5502029/211707727-5713022d-93bc-4795-beb1-ede0d4b86839.png
[with2]: https://user-images.githubusercontent.com/5502029/211707792-ab1230ad-85b4-4b29-b956-25e5aebaa5bb.png
[with1]: https://user-images.githubusercontent.com/5502029/211707740-aceadea4-a710-4f88-9975-0244d6ef1eda.png

## Install

```lua
{ "typicode/bg.nvim", lazy = false }
```

## How it works

`bg.nvim` uses escape sequences to change your terminal background and cursor whenever you change your colorscheme. When neovim exits, it will restore the original colors.

Supported by modern terminals (alacritty, foot, gnome-terminal, kitty, wezterm, ...).

For reset colors support, [st](https://st.suckless.org/) needs to be [patched](https://pastebin.com/raw/3AthiL72).