Rationale behind this modification: I have bound a key to toggle_panel() but with recent changes this will no longer open the panel before I first called any of the LSP methods (before it just opened the symboltree and populated it).
With this change I can check if opening the panel was successful and if not call vim.lsp.buf.document_symbol() so it will eventually do what I want. ;-)
Rationale behind this modification: I have bound a key to
toggle_panel()
but with recent changes this will no longer open the panel before I first called any of the LSP methods (before it just opened the symboltree and populated it).With this change I can check if opening the panel was successful and if not call
vim.lsp.buf.document_symbol()
so it will eventually do what I want. ;-)