aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/plugged/vim-airline/autoload/airline/extensions/vista.vim
blob: 2ea46c20467e42fb3dbcf85be2b09361fa68c7e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" MIT License. Copyright (c) 2019 s1341 (github@shmarya.net)
" Plugin: https://github.com/liuchengxu/vista.vim
" vim: et ts=2 sts=2 sw=2

scriptencoding utf-8

function! airline#extensions#vista#currenttag()
  if get(w:, 'airline_active', 0)
    return get(b:, 'vista_nearest_method_or_function', '')
  endif
endfunction

function! airline#extensions#vista#init(ext)
  call airline#parts#define_function('vista', 'airline#extensions#vista#currenttag')
endfunction