grepper.vim 482 B

123456789101112131415161718
  1. " MIT License. Copyright (c) 2014-2021 Mathias Andersson et al.
  2. " Plugin: https://github.com/mhinz/vim-grepper
  3. " vim: et ts=2 sts=2 sw=2
  4. scriptencoding utf-8
  5. if !get(g:, 'loaded_grepper', 0)
  6. finish
  7. endif
  8. function! airline#extensions#grepper#status()
  9. let msg = grepper#statusline()
  10. return empty(msg) ? '' : 'grepper'
  11. endfunction
  12. function! airline#extensions#grepper#init(ext)
  13. call airline#parts#define_function('grepper', 'airline#extensions#grepper#status')
  14. endfunction