'litee.lsp.handlers' not found
ziontee113 opened this issue · 6 comments
Hi, this is my first time intsalling litee and I can't get it to work.
I tried:
require("litee.lib").setup({})
require("litee.calltree").setup({})
require("litee.symboltree").setup({})
vim.lsp.handlers['callHierarchy/incomingCalls'] = vim.lsp.with(
require('litee.lsp.handlers').ch_lsp_handler("from"), {}
)
vim.lsp.handlers['callHierarchy/outgoingCalls'] = vim.lsp.with(
require('litee.lsp.handlers').ch_lsp_handler("to"), {}
)
But it results in 'litee.lsp.handlers' not found
error.
I can't get any Litee commands to work at all.
Check this out as an example.
https://github.com/ldelossa/dotfiles/blob/master/config/nvim/lua/configs/litee.lua
you shouldn't need to do anything more then calling setup()
Thank you for responding :)
So I did just call the setup functions. There is no error. But the only Panel that I can open is the File Tree panel.
When I use :LTOpenToSymbolTree
, nothing happens, or there is a red popup that says: "You must perform a document symbol LSP request first"
When I use :LTOpenToCallTree
, nothing happens, or there is a red popup that says kind of the same thing, about LSP related stuff.
There are so many functions that I don't know what to do and how to set them up.
The calltree is only opened when a native LSP "incoming calls" or "outgoing calls" method is invoked. Checkout https://neovim.io/doc/user/lsp.html for more info.
Most individuals will map the LSP function calls to key bindings
Hi @ldelossa , I got the Symbol Tree opened with vim.lsp.buf.document_symbol()
! The problem is that I run into another error while trying to press enter open folds or jump to locations with it.
It also bricks up the whole file. Whenever I move the cursor I get an error.
If you disable beacon plugin does it work?
Sorry. That's my bad! It works now :)