Browse Source

get vim-material to work properly

master
Taylor Bockman 5 years ago
parent
commit
75d552cda2
  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
Plug 'hzchirs/vim-material'
set background=dark
colorscheme vim-material
" Syntastic
Plug 'scrooloose/syntastic'
@ -116,6 +114,16 @@ Plug 'https://github.com/vim-scripts/dbext.vim'
" end plugin list
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
set expandtab " tabs to spaces
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
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