Browse Source

get vim-material to work properly

Taylor Bockman 5 years ago
parent
commit
0a5070b1bc
  1. 17
      dotfiles/config/nvim/init.vim

17
dotfiles/config/nvim/init.vim

@ -10,8 +10,6 @@ call plug#begin('~/.config/nvim/plugged')
" Material theme " Material theme
Plug 'hzchirs/vim-material' Plug 'hzchirs/vim-material'
set background=dark
colorscheme vim-material
" Syntastic " Syntastic
Plug 'scrooloose/syntastic' Plug 'scrooloose/syntastic'
@ -116,6 +114,16 @@ Plug 'https://github.com/vim-scripts/dbext.vim'
" end plugin list " end plugin list
call plug#end() call plug#end()
" Configure vim for true color display otherwise vim-material won't display
" correctly.
if (has('nvim'))
let $NVIM_TUI_ENABLE_TRUE_COLOR = 1
endif
if (has('termguicolors'))
set termguicolors
endif
" Standard variables " Standard variables
set expandtab " tabs to spaces set expandtab " tabs to spaces
set tabstop=2 " spaces entered when tab key is pressed set tabstop=2 " spaces entered when tab key is pressed
@ -258,3 +266,8 @@ let g:indentLine_enabled=0
" Leader + i will toggle line indent guides " Leader + i will toggle line indent guides
map <silent> <Leader>i :IndentLinesToggle<CR> map <silent> <Leader>i :IndentLinesToggle<CR>
" Color scheme setting is done absolutely last to make sure everything is
" available to vim
set background=dark
colorscheme vim-material

Loading…
Cancel
Save