mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-05 11:52:50 +08:00
#1428 Start implementing LSP hover support
This commit is contained in:
6 files changed
+260
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user