From aab557cf9c1a6f7752af7507efceead8279618f8 Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Sat, 28 Jan 2017 22:17:04 +0200 Subject: [PATCH] Replace Syntastic with Neomake Async, yay! --- neostrophic.vim | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/neostrophic.vim b/neostrophic.vim index b17932a..4d84e63 100644 --- a/neostrophic.vim +++ b/neostrophic.vim @@ -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 ', 'Neomake! makeclean'], \ ['▷ Neostrophic: grep for TODOs ', 'grep TODO'], \ ['▷ Git: preview hunk ,hp', 'GitGutterPreviewHunk'], \ ['▷ Git: stage hunk ', 'GitGutterStageHunk'],