summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2022-12-25 19:43:29 +0000
committerw0rp <devw0rp@gmail.com>2022-12-25 20:18:47 +0000
commit9f2a00023739695f4eed1073a01b2f2b7553d779 (patch)
tree32b67248d7cef948987555878ff549036dfb3d90 /plugin/ale.vim
parent300ea232de003f5ce45549be85d5da7f84fe23b0 (diff)
downloadale-9f2a00023739695f4eed1073a01b2f2b7553d779.zip
Close #4396 - Enable virtualtext by default
Wherever it's supported, enable virtualtext by default.
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 67a3dd5d..6aa115ea 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -128,7 +128,7 @@ let g:ale_echo_cursor = get(g:, 'ale_echo_cursor', 1)
let g:ale_cursor_detail = get(g:, 'ale_cursor_detail', 0)
" This flag can be changed to disable/enable virtual text.
-let g:ale_virtualtext_cursor = get(g:, 'ale_virtualtext_cursor', 'disabled')
+let g:ale_virtualtext_cursor = get(g:, 'ale_virtualtext_cursor', (has('nvim-0.3.2') || has('patch-9.0.0297') && has('textprop') && has('popupwin')) ? 'all' : 'disabled')
" This flag can be set to 1 to enable LSP hover messages at the cursor.
let g:ale_hover_cursor = get(g:, 'ale_hover_cursor', 1)