feat(lsp): add incoming call handler

main
Arsham Shirvani 2 years ago committed by bhagwan
parent f7f54dd685
commit 5060b677e0

@ -139,6 +139,7 @@ M.lsp_live_workspace_symbols = require'fzf-lua.providers.lsp'.live_workspace_sym
M.lsp_code_actions = require'fzf-lua.providers.lsp'.code_actions
M.lsp_document_diagnostics = require'fzf-lua.providers.lsp'.diagnostics
M.lsp_workspace_diagnostics = require'fzf-lua.providers.lsp'.workspace_diagnostics
M.lsp_incoming_calls = require'fzf-lua.providers.lsp'.incoming_calls
M.register_ui_select = require'fzf-lua.providers.ui_select'.register
M.deregister_ui_select = require'fzf-lua.providers.ui_select'.deregister

@ -701,6 +701,10 @@ M.live_workspace_symbols = function(opts)
opts.search = nil
end
M.incoming_calls = function(opts)
return fzf_lsp_locations(opts)
end
local function check_capabilities(feature)
local clients = vim.lsp.buf_get_clients(0)
@ -778,6 +782,11 @@ local handlers = {
capability = nil,
method = nil,
handler = diagnostics_handler },
["incoming_calls"] = {
label = "Incoming Calls",
capability = "call_hierarchy",
method = "textDocument/prepareCallHierarchy",
handler = location_handler },
}
local function wrap_module_fncs(mod)

Loading…
Cancel
Save