From 39c892eff4f167333e2a05472e0922cba5471a0d Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 10 Dec 2018 20:08:28 +0000 Subject: #1520 - Add an :ALEDocumentation for tsserver --- plugin/ale.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugin/ale.vim') diff --git a/plugin/ale.vim b/plugin/ale.vim index 7231d1bd..610ff142 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -193,9 +193,11 @@ command! -bar ALEGoToDefinitionInTab :call ale#definition#GoTo({'open_in_tab': 1 " Find references for tsserver and LSP command! -bar ALEFindReferences :call ale#references#Find() -" Get information for the cursor. -command! -bar ALEHover :call ale#hover#Show(bufnr(''), getcurpos()[1], - \ getcurpos()[2], {}) +" Show summary information for the cursor. +command! -bar ALEHover :call ale#hover#ShowAtCursor() + +" Show documentation for the cursor. +command! -bar ALEDocumentation :call ale#hover#ShowDocumentationAtCursor() " Search for appearances of a symbol, such as a type name or function name. command! -nargs=1 ALESymbolSearch :call ale#symbol#Search() @@ -222,6 +224,7 @@ nnoremap (ale_go_to_definition) :ALEGoToDefinition nnoremap (ale_go_to_definition_in_tab) :ALEGoToDefinitionInTab nnoremap (ale_find_references) :ALEFindReferences nnoremap (ale_hover) :ALEHover +nnoremap (ale_documentation) :ALEDocumentation " Set up autocmd groups now. call ale#events#Init() -- cgit v1.2.3