commandt.vim 502 B

12345678910111213141516171819
  1. " MIT License. Copyright (c) 2013-2021 Bailey Ling et al.
  2. " Plugin: https://github.com/wincent/command-t
  3. " vim: et ts=2 sts=2 sw=2
  4. scriptencoding utf-8
  5. if !get(g:, 'command_t_loaded', 0)
  6. finish
  7. endif
  8. function! airline#extensions#commandt#apply(...)
  9. if bufname('%') ==# 'GoToFile'
  10. call airline#extensions#apply_left_override('CommandT', '')
  11. endif
  12. endfunction
  13. function! airline#extensions#commandt#init(ext)
  14. call a:ext.add_statusline_func('airline#extensions#commandt#apply')
  15. endfunction