#1428 Start implementing LSP hover support

This commit is contained in:
w0rp committed 2018-04-22 22:00:25 +01:00
1 parent 0b3ee11546
commit ef130c4428
6 files changed
+260

No files matched your search

+9
View File
@@ -126,3 +126,12 @@ function! ale#lsp#message#References(buffer, line, column) abort
\ 'context': {'includeDeclaration': v:false},
\}]
endfunction
function! ale#lsp#message#Hover(buffer, line, column) abort
return [0, 'textDocument/hover', {
\ 'textDocument': {
\ 'uri': ale#path#ToURI(expand('#' . a:buffer . ':p')),
\ },
\ 'position': {'line': a:line - 1, 'character': a:column},
\}]
endfunction