summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorgodbless <26397224+sak96@users.noreply.github.com>2022-04-30 08:58:26 +0530
committerGitHub <noreply@github.com>2022-04-30 12:28:26 +0900
commitd484347fb5f63cd5d4d4da7bf1ba4fc197f668eb (patch)
treed9c5d83af7f595bb9d05e015935558d63aa6708c /plugin
parent57e16957e0e4c4293603bffc5014dc6bc72e9256 (diff)
downloadale-d484347fb5f63cd5d4d4da7bf1ba4fc197f668eb.zip
Add ALEGoToImplementation (#4160)
* Add go to implementation * Add test cases for GoToImplementation * Add documentation for GoToImplementation
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index fb016651..8d829ddf 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -252,6 +252,9 @@ command! -bar -nargs=* ALEGoToDefinition :call ale#definition#GoToCommandHandler
" Go to type definition for tsserver and LSP
command! -bar -nargs=* ALEGoToTypeDefinition :call ale#definition#GoToCommandHandler('type', <f-args>)
+" Go to implementation for tsserver and LSP
+command! -bar -nargs=* ALEGoToImplementation :call ale#definition#GoToCommandHandler('implementation', <f-args>)
+
" Repeat a previous selection in the preview window
command! -bar ALERepeatSelection :call ale#preview#RepeatSelection()
@@ -319,6 +322,9 @@ nnoremap <silent> <Plug>(ale_go_to_type_definition) :ALEGoToTypeDefinition<Retur
nnoremap <silent> <Plug>(ale_go_to_type_definition_in_tab) :ALEGoToTypeDefinition -tab<Return>
nnoremap <silent> <Plug>(ale_go_to_type_definition_in_split) :ALEGoToTypeDefinition -split<Return>
nnoremap <silent> <Plug>(ale_go_to_type_definition_in_vsplit) :ALEGoToTypeDefinitionIn -vsplit<Return>
+nnoremap <silent> <Plug>(ale_go_to_implementation_in_tab) :ALEGoToImplementation -tab<Return>
+nnoremap <silent> <Plug>(ale_go_to_implementation_in_split) :ALEGoToImplementation -split<Return>
+nnoremap <silent> <Plug>(ale_go_to_implementation_in_vsplit) :ALEGoToImplementation -vsplit<Return>
nnoremap <silent> <Plug>(ale_find_references) :ALEFindReferences<Return>
nnoremap <silent> <Plug>(ale_hover) :ALEHover<Return>
nnoremap <silent> <Plug>(ale_documentation) :ALEDocumentation<Return>