switch to plug and neomake

This commit is contained in:
Michele Guerini Rocco 2018-11-10 17:20:21 +01:00
parent cad72cb7aa
commit 872edc9f66
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A

View File

@ -3,9 +3,10 @@
""
" Vim environment
let cache = $XDG_CACHE_HOME .'/nvim'
let data = $XDG_DATA_HOME.'/nvim'
let config = $XDG_CONFIG_HOME.'/nvim'
let plugins = cache.'/plugins'
let cache = $XDG_CACHE_HOME .'/nvim'
let plugins = data.'/plugins'
let &directory = cache.',~/,/tmp'
let &backupdir = cache.',~/,/tmp'
@ -23,27 +24,31 @@ set undofile
"" Plugins
""
let &rtp .= ','.plugins.'/Vundle.vim'
call vundle#begin(plugins)
call plug#begin(plugins)
Plugin 'VundleVim/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'townk/vim-autoclose'
Plugin 'tpope/vim-fugitive'
Plugin 'travitch/hasksyn'
Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'LnL7/vim-nix'
Plugin 'kchmck/vim-coffee-script'
Plugin 'ngn/vim-apl'
Plugin 'hdima/python-syntax'
Plugin 'ervandew/supertab'
Plugin 'majutsushi/tagbar'
Plugin 'scrooloose/syntastic'
Plugin 'airblade/vim-gitgutter'
Plugin 'mbbill/undotree'
" UI
Plug 'kien/ctrlp.vim'
Plug 'itchyny/lightline.vim'
Plug 'airblade/vim-gitgutter'
Plug 'majutsushi/tagbar', { 'on' : 'TagbarToggle' }
Plug 'mbbill/undotree', { 'on' : 'UndotreeToggle' }
Plug 'milkypostman/vim-togglelist'
call vundle#end()
" Syntax
Plug 'travitch/hasksyn'
Plug 'LnL7/vim-nix'
Plug 'ngn/vim-apl'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'kchmck/vim-coffee-script'
Plug 'hdima/python-syntax'
" Misc
Plug 'townk/vim-autoclose'
Plug 'tpope/vim-fugitive'
Plug 'ervandew/supertab'
Plug 'neomake/neomake'
call plug#end()
""
@ -126,13 +131,17 @@ noremap O O<ESC>
" Lightline
runtime lightline.vim
" Syntastic
let g:syntastic_check_on_open = 1
let g:syntastic_enable_signs = 1
let g:syntastic_auto_jump = 0
let g:syntastic_shell = "/bin/sh"
let g:syntastic_python_checkers = ["flake8"]
let g:syntastic_python_python_exe = 'python3'
" Neomake
call neomake#configure#automake('nwr', 750)
let g:neomake_warning_sign = {
\ 'text': 'W→',
\ 'texthl': 'WarningMsg',
\ }
let g:neomake_error_sign = {
\ 'text': 'E→',
\ 'texthl': 'ErrorMsg',
\ }
let g:neomake_highlight_lines = 1
" Tagbar
let g:tagbar_status_func = "TagbarStatusFunc"