Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 825 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 825 Bytes

lightline_tagbar

Vim plugin providing a function intended as a tab component for lightline.vim.

Wraps a call to the function provided by Tagbar that displays the tag inside which the cursor is currently held.

Usage

let g:lightline = {
\	'component_function': {
\		'tagbar': 'lightline_tagbar#component',
\	},
\	'active': {
\		'right': [
\			['lineinfo'],
\			['percent'],
\			['tagbar', 'fileformat', 'fileencoding', 'filetype'],
\		],
\	},
\}

Configuration

" printf-compatible string that accepts a single value - the name of the tag.
let g:lightline_tagbar#format = '%s'

" Flags argument passed to tagbar#currenttag. See documentation of that
" function for details.
let g:lightline_tagbar#flags = ''