summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-12-10 20:08:28 +0000
committerw0rp <devw0rp@gmail.com>2018-12-10 20:08:28 +0000
commit39c892eff4f167333e2a05472e0922cba5471a0d (patch)
treeea621f3d11659b3efb217ec899c31b7c09adb583 /plugin/ale.vim
parent9226e13b31474ac17d0c25cd27aa55bff21d55c2 (diff)
downloadale-39c892eff4f167333e2a05472e0922cba5471a0d.zip
#1520 - Add an :ALEDocumentation for tsserver
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim9
1 files changed, 6 insertions, 3 deletions
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(<q-args>)
@@ -222,6 +224,7 @@ nnoremap <silent> <Plug>(ale_go_to_definition) :ALEGoToDefinition<Return>
nnoremap <silent> <Plug>(ale_go_to_definition_in_tab) :ALEGoToDefinitionInTab<Return>
nnoremap <silent> <Plug>(ale_find_references) :ALEFindReferences<Return>
nnoremap <silent> <Plug>(ale_hover) :ALEHover<Return>
+nnoremap <silent> <Plug>(ale_documentation) :ALEDocumentation<Return>
" Set up autocmd groups now.
call ale#events#Init()