ldelossa / litee-calltree.nvim

Neovim's missing call hierarchy UI
131 stars 9 forks source link

Get error "must make call tree request to LSP" when doing :LTPopOutCalltree #11

Closed FerrisWasTaken closed 2 years ago

FerrisWasTaken commented 2 years ago

I have been trying to get the call tree for Rust particularly but I get that error (mentioned in title) so i tried to doing :LTPanel but that said there must be a existing litee component. Can somebody help me with this

ldelossa commented 2 years ago

litee-calltree is wired into Neovim's lsp functions. Did you attempt to directy or indirectly create a call heirarchy request? lua vim.lsp.buf.incoming_calls or lua vim.lsp.buf.outgoing_calls will do it.

FerrisWasTaken commented 2 years ago

after trying lua vim.lsp.buf.incoming_calls I got expected = near

ldelossa commented 2 years ago

@muppi090909 you'll have to read a few tutorials or checkout ":h vim.lsp" in neovim to figure out how to use those functions correctly. Most bind the functions to keymappings.

Here's a good starting point: https://github.com/neovim/nvim-lspconfig#suggested-configuration