diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-21 00:21:45 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-21 00:21:45 +0000 |
commit | 7ea3aba5e587f1993c0377ed270b5cbd823e3711 (patch) | |
tree | a21347b43e4c6fb24dfe350e06eb7db1e21f7b3e /plugin | |
parent | 5a3a6955863fde86ef318a1fc6c3ad5d23429c0a (diff) | |
download | ale-7ea3aba5e587f1993c0377ed270b5cbd823e3711.zip |
Quietly add go to definition support for tsserver
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index d9710fa2..a8bce1b4 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -247,6 +247,10 @@ command! -bar ALEFix :call ale#fix#Fix() " Suggest registered functions to use for fixing problems. command! -bar ALEFixSuggest :call ale#fix#registry#Suggest(&filetype) +" Go to definition for tsserver and LSP +command! -bar ALEGoToDefinition :call ale#definition#GoTo({}) +command! -bar ALEGoToDefinitionInTab :call ale#definition#GoTo({'open_in_tab': 1}) + " <Plug> mappings for commands nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return> nnoremap <silent> <Plug>(ale_previous_wrap) :ALEPreviousWrap<Return> @@ -265,6 +269,8 @@ nnoremap <silent> <Plug>(ale_reset_buffer) :ALEResetBuffer<Return> nnoremap <silent> <Plug>(ale_lint) :ALELint<Return> nnoremap <silent> <Plug>(ale_detail) :ALEDetail<Return> nnoremap <silent> <Plug>(ale_fix) :ALEFix<Return> +nnoremap <silent> <Plug>(ale_go_to_definition) :ALEGoToDefinition<Return> +nnoremap <silent> <Plug>(ale_go_to_definition_in_tab) :ALEGoToDefinitionInTab<Return> " Set up autocmd groups now. call ale#toggle#InitAuGroups() |