Replace Syntastic with Neomake

Async, yay!
This commit is contained in:
Mark Vainomaa 2017-01-28 22:17:04 +02:00
parent 2ac9e5b384
commit aab557cf9c

View File

@ -62,7 +62,7 @@ end
call plug#begin('~/.config/nvim/neostrophic_plugins')
" --- Completion and syntax check engine
Plug 'Shougo/deoplete.nvim', {'do': function('URP')}
Plug 'scrooloose/syntastic'
Plug 'neomake/neomake'
Plug 'ervandew/supertab'
Plug 'Shougo/echodoc.vim'
@ -226,21 +226,10 @@ let g:indentLine_char = '┆'
let g:startify_session_dir = '~/.config/nvim/startify-session'
let g:startify_custom_header = s:center_header(map(split(system('fortune | cowsay'), '\n'), '" ". v:val') + ['',''])
" Syntastic
let g:syntastic_enable_balloons = 1
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_mode_map = {
\ "mode": "active",
\ "active_filetypes": ["javascript", "python", "coffee", "jade", "yaml"],
\ "passive_filetypes": ["java", "c"]}
let g:syntastic_python_checkers = ['flake8', 'pylint']
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_yaml_checkers = ['yamllint', 'yamlxs']
let g:syntastic_cpp_checkers = ['clang_check']
let g:syntastic_cpp_compiler = 'clang++'
" Neomake
let g:neomake_makeclean_maker = { 'exe': 'make', 'args': ['clean'] }
autocmd! BufReadPost * Neomake
autocmd! BufWritePost * Neomake
" Lightline
let g:lightline_buffer_readonly_icon = 'R'
@ -307,7 +296,7 @@ function! g:unite_source_menu_menus.neostrophic_menu.map(key, value)
endfunction
let g:unite_source_menu_menus.neostrophic_menu.command_candidates = [
\ ['▷ Syntastic: toggle checking mode C-A-f', 'SyntasticToggleMode'],
\ ['▷ Neomake: make clean <none>', 'Neomake! makeclean'],
\ ['▷ Neostrophic: grep for TODOs <none>', 'grep TODO'],
\ ['▷ Git: preview hunk ,hp', 'GitGutterPreviewHunk'],
\ ['▷ Git: stage hunk <none>', 'GitGutterStageHunk'],