From d16e82d468eb0d5bb1e662ac4812c0ca6fc0fc64 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 25 Feb 2020 14:47:03 +0300 Subject: reorganized repo to be easier to use with GNU stow; added script to stow --- .vim/autoload/airline/extensions/neomake.vim | 36 ---------------------------- 1 file changed, 36 deletions(-) delete mode 100644 .vim/autoload/airline/extensions/neomake.vim (limited to '.vim/autoload/airline/extensions/neomake.vim') diff --git a/.vim/autoload/airline/extensions/neomake.vim b/.vim/autoload/airline/extensions/neomake.vim deleted file mode 100644 index b82d6c3..0000000 --- a/.vim/autoload/airline/extensions/neomake.vim +++ /dev/null @@ -1,36 +0,0 @@ -" MIT License. Copyright (c) 2013-2018 Bailey Ling et al. -" vim: et ts=2 sts=2 sw=2 - -if !exists(':Neomake') - finish -endif - -let s:error_symbol = get(g:, 'airline#extensions#neomake#error_symbol', 'E:') -let s:warning_symbol = get(g:, 'airline#extensions#neomake#warning_symbol', 'W:') - -function! s:get_counts() - let l:counts = neomake#statusline#LoclistCounts() - - if empty(l:counts) - return neomake#statusline#QflistCounts() - else - return l:counts - endif -endfunction - -function! airline#extensions#neomake#get_warnings() - let counts = s:get_counts() - let warnings = get(counts, 'W', 0) - return warnings ? s:warning_symbol.warnings : '' -endfunction - -function! airline#extensions#neomake#get_errors() - let counts = s:get_counts() - let errors = get(counts, 'E', 0) - return errors ? s:error_symbol.errors : '' -endfunction - -function! airline#extensions#neomake#init(ext) - call airline#parts#define_function('neomake_warning_count', 'airline#extensions#neomake#get_warnings') - call airline#parts#define_function('neomake_error_count', 'airline#extensions#neomake#get_errors') -endfunction -- cgit v1.2.3