config: nvim: add vim-plug, vim-dichromatic and nvim-colorizer

This commit is contained in:
Thomas Preisner 2022-03-18 17:45:47 +01:00
parent 8a3be75d1f
commit 3be7d5aec4
3 changed files with 27 additions and 1 deletions

View file

@ -98,7 +98,8 @@ if has('syntax')
endif endif
" set colorscheme " set colorscheme
colorscheme ron colorscheme dichromatic
" TODO: use `colorscheme ron` as fallback?
" display line at which the current is positioned " display line at which the current is positioned
if exists('+cursorline') if exists('+cursorline')
@ -127,6 +128,12 @@ set showcmd
" define characters to display when using 'set list' " define characters to display when using 'set list'
set listchars=tab:→\ ,trail:∙,eol,extends:,precedes:,nbsp:␣ set listchars=tab:→\ ,trail:∙,eol,extends:,precedes:,nbsp:␣
" enable nvim-colorizer
if has('nvim')
set termguicolors
lua require'colorizer'.setup()
endif
" increase completion performance and reduce time until timeout " increase completion performance and reduce time until timeout
set updatetime=300 set updatetime=300
set timeoutlen=500 set timeoutlen=500

View file

@ -1,2 +1,3 @@
source $HOME/.config/nvim/plugins.vim
source $HOME/.config/nvim/general.vim source $HOME/.config/nvim/general.vim
source $HOME/.config/nvim/keybindings.vim source $HOME/.config/nvim/keybindings.vim

18
config/nvim/plugins.vim Normal file
View file

@ -0,0 +1,18 @@
" warn if vim-plug is not available
if empty(glob('~/.config/nvim/autoload/plug.vim'))
echom "Install https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
\ to ~/.config/nvim/autoload/plug.vim"
endif
call plug#begin('~/.config/nvim/autoload/plugged')
" vim colortheme for colorblind
Plug 'romainl/vim-dichromatic'
" only for nvim!
if has('nvim')
" colorizes colorcodes
Plug 'norcalli/nvim-colorizer.lua'
endif
call plug#end()