fix #4276: honor b:ale_enabled for hover at cursor (#4277)

* fix #4276: honor b:ale_enabled for hover at cursor

* fix indention
This commit is contained in:
Hongbo Liu 2022-08-18 05:34:34 +08:00 committed by GitHub
parent 233b681029
commit 7889983f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -339,6 +339,10 @@ function! ale#hover#ShowTruncatedMessageAtCursor() abort
let l:buffer = bufnr('')
let l:pos = getpos('.')[0:2]
if !getbufvar(l:buffer, 'ale_enabled', 1)
return
endif
if l:pos != s:last_pos
let s:last_pos = l:pos
let [l:info, l:loc] = ale#util#FindItemAtCursor(l:buffer)