diff options
Diffstat (limited to 'autoload/ale/hover.vim')
-rw-r--r-- | autoload/ale/hover.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/autoload/ale/hover.vim b/autoload/ale/hover.vim index 6ad43316..7070b86d 100644 --- a/autoload/ale/hover.vim +++ b/autoload/ale/hover.vim @@ -329,10 +329,9 @@ function! ale#hover#Show(buffer, line, col, opt) abort let l:show_documentation = get(a:opt, 'show_documentation', 0) let l:Callback = function('s:OnReady', [a:line, a:col, a:opt]) - for l:linter in ale#linter#Get(getbufvar(a:buffer, '&filetype')) + for l:linter in ale#lsp_linter#GetEnabled(a:buffer) " Only tsserver supports documentation requests at the moment. - if !empty(l:linter.lsp) - \&& (!l:show_documentation || l:linter.lsp is# 'tsserver') + if !l:show_documentation || l:linter.lsp is# 'tsserver' call ale#lsp_linter#StartLSP(a:buffer, l:linter, l:Callback) endif endfor |