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 97 forks source link

[Feature] Add symbol navigation commands #206

Open pidgeon777 opened 1 year ago

pidgeon777 commented 1 year ago

My proposal is to implement two new commands:

Symbol navigation with those two commands should occur even if the Symbols Outline panel is not open.

Optionally: implement an highlight which appears for the newly selected symbol, which disappears (fade out?) after a certain user-defined time.

rstacruz commented 1 year ago

This would be great!

A totally imperfect solution would be something like this (already assumes symbols outline is open on the right-most pane):

nmap [s <c-w>bj<cr>
nmap ]s <c-w>bk<cr>

Just tried it out and I can see that this will be very useful.