Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.31 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.31 KB

Auto-BG.nvim

A simple neovim plugin to automatically set the background color when system theme changes (only works on macOS now).

Installation

Use your favorite plugin manager, for example, with lazy.nvim:

{
  'wangl-cc/auto-bg.nvim',
  event = 'UIEnter',
  opts = {},
}

Options

{
  dark = {
    pre = fun(): nil, -- function called before set background to dark
    post = fun(): nil, -- function called after set background to dark
  },
  light = {
    pre = fun(): nil, -- function called before set background to light
    post = fun(): nil, -- function called after set background to light
  },
}

Thanks

This plugin is inspired by:

Why not use vim-lumen?

I suffered a big deley during startup when using vim-lumen (about 200ms).