A dark color scheme for Vim/Neovim based on the Material color scheme. This is a fork and is built on the fantastic work done in the palenight.vim and quantum color schemes.
Using vim-plug (modify this to work with your Vim package manager of choice):
Plug 'kaicataldo/material.vim'
To enable this color scheme, add the following to your Vim (~/.vimrc
) or Neovim (~/.config/nvim/init.vim
) configuration:
set background=dark
colorscheme material
True colors are a requirement for this color scheme to work properly. To enable this, place the following in your ~/.vimrc
or ~/.config/nvim/init.vim
file:
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
There are three theme options - default
, palenight
, and dark
(defaulting to default
). This can be configured as follows:
let g:material_theme_style = 'default' | 'palenight' | 'dark'
To turn on italics, configure as follows:
let g:material_terminal_italics = 1
The included vim-airline and lightline.vim themes will change to match the theme option specified.
To use the included vim-airline theme:
let g:airline_theme = 'material'
To use the included lightline.vim theme:
let g:lightline = { 'colorscheme': 'material_vim' }
Note: The included theme is called material_vim
because lightline.vim comes with its own version of a material theme (which does not change based on the theme version selected).
Corresponding terminal color schemes are included in this repo. You can find them here.