mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 21:44:47 +08:00
* fix #4276: honor b:ale_enabled for hover at cursor * fix indention
This commit is contained in:
@@ -339,6 +339,10 @@ function! ale#hover#ShowTruncatedMessageAtCursor() abort
|
|||||||
let l:buffer = bufnr('')
|
let l:buffer = bufnr('')
|
||||||
let l:pos = getpos('.')[0:2]
|
let l:pos = getpos('.')[0:2]
|
||||||
|
|
||||||
|
if !getbufvar(l:buffer, 'ale_enabled', 1)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
if l:pos != s:last_pos
|
if l:pos != s:last_pos
|
||||||
let s:last_pos = l:pos
|
let s:last_pos = l:pos
|
||||||
let [l:info, l:loc] = ale#util#FindItemAtCursor(l:buffer)
|
let [l:info, l:loc] = ale#util#FindItemAtCursor(l:buffer)
|
||||||
|
|||||||
Reference in New Issue
Block a user