compilation-error/colorswitch.vim
1
0
Fork
You've already forked colorswitch.vim
0
Switch colorscheme and airline theme based on OS settings
Vim Script 91.3%
Shell 8.7%
2023年02月03日 23:20:31 -05:00
autoload moved functionality to autoload 2023年02月03日 23:20:31 -05:00
plugin moved functionality to autoload 2023年02月03日 23:20:31 -05:00
tests pre and post hooks 2023年02月03日 18:06:21 -05:00
.gitignore pre and post hooks 2023年02月03日 18:06:21 -05:00
LICENSE Removed Whitespaces from License file 2023年01月05日 16:43:18 -05:00
README.md updated readme instructions 2023年01月06日 02:04:55 -05:00

colorswitch.vim

Plugin to automatically set dark and light colorschemes based on OS mode. Sets background and colorscheme as well as airline theme.

Currently works for MacOS and linux (KDE) only.

Requirements

On KDE

xdg-portal-desktop

Optional

vim-airline

vim-airline-themes

Installation

Using vim-plug

Plug 'compilation-error/colorswitch.vim'

Usage

Set the following in your .vimrc

let g:colorswitch_dark_theme='default'
let g:colorswitch_dark_airline='dark'
let g:colorswitch_light_theme='default'
let g:colorswitch_light_airline='dark'

Automatic switching based on OS model when Vim starts.

Manually call ColorSwitchDark, ColorSwitchLight, or ColorSwitchToggle to switch to dark, light modes or toggle mode, respectively.

Licence

MIT