From 2db284e61e10fcade35ef3bb68fe367222d2aea1 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Sun, 18 Mar 2018 22:20:13 -0700 Subject: [PATCH] remove old handle_hover --- autoload/lsp/ui/vim.vim | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/autoload/lsp/ui/vim.vim b/autoload/lsp/ui/vim.vim index ee63aa90..de8b6bb0 100644 --- a/autoload/lsp/ui/vim.vim +++ b/autoload/lsp/ui/vim.vim @@ -266,34 +266,6 @@ function! s:handle_location(ctx, server, type, data) abort "ctx = {counter, list endif endfunction -function! s:handle_hover(server, last_req_id, type, data) abort - if a:last_req_id != s:last_req_id - return - endif - - if lsp#client#is_error(a:data['response']) - call lsp#utils#error('Failed to retrieve '. a:type . ' for ' . a:server) - return - endif - - if !has_key(a:data['response'], 'result') - return - endif - - if empty(a:data['response']['result']) - call lsp#utils#error('No ' . a:type .' found') - return - endif - - let l:contents = a:data['response']['result']['contents'] - - if empty(l:contents) - call lsp#utils#error('No ' . a:type .' found') - else - echo lsp#ui#vim#output#preview(l:contents) - endif -endfunction - function! s:handle_workspace_edit(server, last_req_id, type, data) abort if a:last_req_id != s:last_req_id return