https://github.com/adamnsch/vim-circadian
Set vim theme based on time of day.
https://github.com/adamnsch/vim-circadian
vim vim-colorscheme vim-plugins
Last synced: 8 months ago
JSON representation
Set vim theme based on time of day.
- Host: GitHub
- URL: https://github.com/adamnsch/vim-circadian
- Owner: adamnsch
- Created: 2021-09-18T06:58:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-18T13:02:30.000Z (almost 5 years ago)
- Last Synced: 2025-04-23T03:59:56.038Z (about 1 year ago)
- Topics: vim, vim-colorscheme, vim-plugins
- Language: Vim script
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```vim
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:
```vim
let g:circadian_day_start = 10
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 `colorscheme`s that should be used the following way:
```vim
let g:circadian_day_theme = 'onehalflight'
let g:circadian_night_theme = 'onehalfdark'
```