ldelossa / litee.nvim

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

59d039b no longer opens calltree window #36

Closed wilriker closed 2 years ago

wilriker commented 2 years ago

With the latest commit 59d039b calltree.nvim no longer works for me. Going back one commit everything still works as intended.

When I open a go project and call vim.lsp.buf.incoming_calls() simply nothing happens. I debugged it until ui.lua:136 where ui_state.calltree_win is nil and (for whatever reason) vim.api.nvim_win_is_valid() returns true for parameter nil. The subsequent vim.api.nvim_set_current_win(nil) simply does nothing.

What still works is the symboltree window but only if I open it before I call vim.lsp.buf.incoming_calls(). After that I cannot open symboltree again. It works as long as it is visible but I cannot reopen it once closed.

ldelossa commented 2 years ago

Cool, actually just ran into it this morning. Fix incoming.

Also thanks for the debugging :detective:

ldelossa commented 2 years ago

@wilriker should be fixed.

wilriker commented 2 years ago

Thanks for the fast fix. I can confirm it works again!