simrat39 / symbols-outline.nvim

A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
MIT License
1.85k stars 100 forks source link

how to show souce code line number? #212

Open asaning opened 1 year ago

asaning commented 1 year ago

image

it will be great to show souce code line number which location before the method of the name so that we can use number + G to locate it. @simrat39

gennaro-tedesco commented 1 year ago

Are you sure you need line numbers for that? You can use the in-built method focus_location (usually mapped to o) to focus indeed on the correspondent line number.

antonkesy commented 11 months ago

+1 for this feature

Would be really convenient! If you have the outline buffer always open and edit some code. You won't need to change the focus to the outline to jump to the function in the current buffer.

hedyhli commented 11 months ago

Hi everyone,

Unfortunately, it seems like simrat39 isn't very active in this plugin lately, so a few days ago I've decided to fork the repo to implement a lot of features people have asked for and fixes users reported from this repo.

I recently also added this feature, which I thought could in fact be useful -- although it's turned off by default:

image

It's entirely up to you if you want to try it out, because for now it's still experimental I have to test it more heavily to be completely stable. That said, all the other extra features and fixes are listed in the readme.