-
-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show in what method and class I'm in #42
Comments
You can use the tagbar plugin (https://github.com/majutsushi/tagbar). let g:lightnline = {
\ 'component': {
\ 'tagbar': '%{tagbar#currenttag("[%s]", "")}',
\ },
\ } |
Thanks! How can I enable it thought? I added your snippet to my conf and I have lightline and tagbar installed. |
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark', 'tagbar'] ], |
Great, it works! :) Based on this reference, I changed it to show class as well.
|
Sorry for reviving a closed thread, but the tag shown using the current solution persists even after the cursor has left the function and has not entered another function. Is there a way to fix this? |
@kkanungo17 That's not a issue of lightline but tagbar. Please submit a issue to the tagbar repository. I recommend to describe the issue without lightline, with samlpe code and the results of |
It would be really cool if I could see in what method and class I'm in. It could use Ctags.
What do you think? :)
The text was updated successfully, but these errors were encountered: