config: nvim: add vim-plug, vim-dichromatic and nvim-colorizer
This commit is contained in:
parent
8a3be75d1f
commit
3be7d5aec4
3 changed files with 27 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ if has('syntax')
|
|||
endif
|
||||
|
||||
" set colorscheme
|
||||
colorscheme ron
|
||||
colorscheme dichromatic
|
||||
" TODO: use `colorscheme ron` as fallback?
|
||||
|
||||
" display line at which the current is positioned
|
||||
if exists('+cursorline')
|
||||
|
|
@ -127,6 +128,12 @@ set showcmd
|
|||
" define characters to display when using 'set list'
|
||||
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
|
||||
set updatetime=300
|
||||
set timeoutlen=500
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
source $HOME/.config/nvim/plugins.vim
|
||||
source $HOME/.config/nvim/general.vim
|
||||
source $HOME/.config/nvim/keybindings.vim
|
||||
|
|
|
|||
18
config/nvim/plugins.vim
Normal file
18
config/nvim/plugins.vim
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue