ldelossa / litee.nvim

A framework for building Neovim plugins
409 stars 14 forks source link

feat: let toggle_panel return wether or not it opened the panel #56

Closed wilriker closed 2 years ago

wilriker commented 2 years ago

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. ;-)

ldelossa commented 2 years ago

Thanks for the pull.

wilriker commented 2 years ago

I thank you for accepting because it makes my workflows easier/possible. :-)