Close #1428 Implement LSP hover-like functionality for tsserver too

This commit is contained in:
w0rp
2018-04-26 21:54:11 +01:00
parent e6fe2d86b8
commit d8d09c2048
4 changed files with 80 additions and 3 deletions

View File

@@ -69,3 +69,11 @@ function! ale#lsp#tsserver_message#References(buffer, line, column) abort
\ 'file': expand('#' . a:buffer . ':p'),
\}]
endfunction
function! ale#lsp#tsserver_message#Quickinfo(buffer, line, column) abort
return [0, 'ts@quickinfo', {
\ 'line': a:line,
\ 'offset': a:column,
\ 'file': expand('#' . a:buffer . ':p'),
\}]
endfunction