Skip to content

wangl-cc/auto-bg.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published