symbols-outline.nvim
symbols-outline.nvim copied to clipboard
[Feature Request] An option to auto open outline window
Really like this plugin. It might be more awesome if we could have an option to
- auto open the outline window when there are outline entries,
- and auto close when there is no entries.
autocmd FileType c,cpp,rb,vim,php,go nested :SymbolsOutlineOpen
not work
It seems, you should wait sometime for lsp ok? then this cmd is worked well.
You can run the command SymbolsOutlineOpen inside the on_attach function of the lsp server instead of using it in an autocmd. Still, the outline pane will steal the focus on opening, which I find quite annoying. I don't think there is yet a way to open symbol-outline and stay in the current window (I tried wincmd p after SymbolOutlineOpen, but to no avail).
Otherwise there is aerial.nvim which provides an auto open outline window.
An example of the on_attach SymbolsOutlineOpen would be good.