preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.1k stars 485 forks source link

How to autoload tagbar when neovim a file? #801

Closed AGou-ops closed 2 years ago

AGou-ops commented 2 years ago

How to autoload tagbar when neovim a file? Instead of using command or hotkeys.

raven42 commented 2 years ago

The easiest way is to add the following to your ~/.vimrc

autocmd VimEnter * Tagbar

If you want to limit to only a specific file types, you can replace the * with the given file types.

AGou-ops commented 2 years ago

The easiest way is to add the following to your ~/.vimrc

autocmd VimEnter * Tagbar

If you want to limit to only a specific file types, you can replace the * with the given file types.

It works! Thank you.