项目作者: adamnsch

项目描述 :
Set vim theme based on time of day.
高级语言: Vim script
项目地址: git://github.com/adamnsch/vim-circadian.git
创建时间: 2021-09-18T06:58:23Z
项目社区:https://github.com/adamnsch/vim-circadian

开源协议:

下载


circadian.vim

Small plugin that lets one set a time of day for automatically switching between
two specified themes (typically a light and dark theme).

Requirements

This plugin requires a version of Neovim or Vim that supports timers.
For Vim this means versions >= 7.4.1578.

Installation

Install with your favorite vim plugin manager. For example using plug:

  1. Plug 'adamnsch/vim-circadian'

Customizing

Time of day

By default the plugin will apply the daytime theme from 8 AM to 7 PM.
This can be overridden the following way:

  1. let g:circadian_day_start = 10
  2. let g:circadian_night_start = 20

Note that “military time” is used to encode 8 PM as 20 here.

Specifying themes

By default the plugin will just set background to light and dark for day
and night time respectively.

Specify colorschemes that should be used the following way:

  1. let g:circadian_day_theme = 'onehalflight'
  2. let g:circadian_night_theme = 'onehalfdark'