will / autobg.nvim

auto sync vim bg with mac appearnace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use github.com/will/bgwinch.nvim instead since neovim 0.7

autobg.nvim

This plugin syncs the background option in neovim to match the macOS appearance.

autobg

It assumes that if you're on a mac you have swiftc installed from xcode commandline tools or something, and compiles a very small program that listens for appearance changes and notifies neovim.

It also depends on plenary.nvim.

Packer

use {
  "will/autobg.nvim",
  config = function()
    require("autobg").setup()
  end,
}

Todo

I couldn't figure out a good way to ensure that the helper program exits in all cases when neovim exists, and opened an issue about that. In the meantime, the helper program prints to stdout once a minute, and will get killed with SIGPIPE if the parent neovim process is gone.

About

auto sync vim bg with mac appearnace

License:GNU General Public License v3.0


Languages

Language:Lua 57.7%Language:Swift 42.3%