Skip to content

Commit 2d6a2ba

Browse files
committed
Add g:easytags_suppress_report option
1 parent 364cfcc commit 2d6a2ba

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ If this is set and not false, it will suppress the warning on startup if ctags i
217217

218218
:let g:easytags_suppress_ctags_warning = 1
219219

220+
### The `g:easytags_suppress_report` option
221+
222+
If this is set and not false, it will suppress the report displayed on tag updates.
223+
224+
:let g:easytags_suppress_report = 1
225+
220226
## Customizing the easytags plug-in
221227

222228
Advanced users may wish to customize how the easytags plug-in works beyond the point of changing configuration defaults. This section contains some hints about this. If you have suggestions, please feel free to submit them.

autoload/xolox/easytags.vim

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ function! xolox#easytags#update(silent, filter_tags, filenames) " {{{2
192192
if async
193193
call xolox#misc#async#call({'function': 'xolox#easytags#update#with_vim', 'arguments': [params], 'callback': 'xolox#easytags#async_callback'})
194194
else
195-
call s:report_results(xolox#easytags#update#with_vim(params), 0)
195+
if !(exists('g:easytags_suppress_report') && g:easytags_suppress_report)
196+
call s:report_results(xolox#easytags#update#with_vim(params), 0)
197+
endif
196198
" When :UpdateTags was executed manually we'll refresh the dynamic
197199
" syntax highlighting so that new tags are immediately visible.
198200
if !a:silent && xolox#misc#option#get('easytags_auto_highlight', 1)
@@ -500,10 +502,12 @@ function! xolox#easytags#syntax_groups_to_ignore() " {{{2
500502
endfunction
501503

502504
function! xolox#easytags#async_callback(response) " {{{2
503-
if has_key(a:response, 'result')
504-
call s:report_results(a:response['result'], 1)
505-
else
506-
call xolox#misc#msg#warn("easytags.vim %s: Asynchronous tags file update failed! (%s at %s)", g:xolox#easytags#version, a:response['exception'], a:response['throwpoint'])
505+
if !(exists('g:easytags_suppress_report') && g:easytags_suppress_report)
506+
if has_key(a:response, 'result')
507+
call s:report_results(a:response['result'], 1)
508+
else
509+
call xolox#misc#msg#warn("easytags.vim %s: Asynchronous tags file update failed! (%s at %s)", g:xolox#easytags#version, a:response['exception'], a:response['throwpoint'])
510+
endif
507511
endif
508512
endfunction
509513

doc/easytags.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Contents ~
2727
15. The |g:easytags_include_members| option
2828
16. The |g:easytags_resolve_links| option
2929
17. The |g:easytags_suppress_ctags_warning| option
30+
18. The |g:easytags_suppress_report| option
3031
5. Customizing the easytags plug-in |customizing-easytags-plug-in|
3132
1. Passing custom command line arguments to Exuberant Ctags |easytags-passing-custom-command-line-arguments-to-exuberant-ctags|
3233
2. Update & highlight tags immediately after save |easytags-update-highlight-tags-immediately-after-save|
@@ -468,6 +469,14 @@ is not found or not recent enough.
468469
>
469470
:let g:easytags_suppress_ctags_warning = 1
470471
<
472+
-------------------------------------------------------------------------------
473+
The *g:easytags_suppress_report* option
474+
475+
If this is set and not false, it will suppress the report displayed on tag
476+
updates.
477+
>
478+
:let g:easytags_suppress_report = 1
479+
<
471480
===============================================================================
472481
*customizing-easytags-plug-in*
473482
Customizing the easytags plug-in ~

0 commit comments

Comments
 (0)